Skip to content

Commit

Permalink
Merge branch 'jb34731' into 'master'
Browse files Browse the repository at this point in the history
[filemanager] Don't allow overriding files but emit error. Fixes JB#34731



See merge request !4
  • Loading branch information
jpetrell committed Apr 1, 2016
2 parents dd6b564 + afe6cd9 commit 5ea6ee6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fileengine.cpp
Expand Up @@ -147,6 +147,10 @@ void FileEngine::pasteFiles(QString destDirectory)
return;
}

if (QFile::exists(newName)) {
emit error(ErrorCopyFailed, fileName);
return;
}
}

m_clipboardFiles.clear();
Expand Down

0 comments on commit 5ea6ee6

Please sign in to comment.