Skip to content

Commit

Permalink
[nemo-filemanager] Emit error CannotCopyIntoItself. Contributes to JB…
Browse files Browse the repository at this point in the history
…#47021
  • Loading branch information
Alexey Tatarov committed Aug 26, 2019
1 parent 9510c74 commit b1012d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/fileengine.cpp
Expand Up @@ -129,7 +129,7 @@ void FileEngine::pasteFiles(QString destDirectory, bool nonprivileged)

// source and dest fileNames are the same?
if (fileName == newName) {
qmlInfo(this) << "Paste can't overwrite itself";
emit error(ErrorCannotCopyIntoItself, fileName);
return;
}

Expand Down

0 comments on commit b1012d8

Please sign in to comment.