Skip to content

Commit

Permalink
Merge branch 'omp-jb47021' into 'master'
Browse files Browse the repository at this point in the history
[nemo-filemanager]  Emit error CannotCopyIntoItself. Contributes to JB#47021

See merge request mer-core/nemo-qml-plugin-filemanager!22
  • Loading branch information
rainemak committed Aug 26, 2019
2 parents 9510c74 + b1012d8 commit 4440387
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 4440387

Please sign in to comment.