Skip to content

Commit

Permalink
Merge branch 'omp-jb53652' into 'master'
Browse files Browse the repository at this point in the history
[nemo-qml-plugin-filemanager] Add Copying Failed notification after pasting a deleted item. Fixes JB#53652

See merge request mer-core/nemo-qml-plugin-filemanager!44
  • Loading branch information
pvuorela committed Mar 24, 2021
2 parents c2883bd + 80f85ce commit 67f5361
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugin/fileengine.cpp
Expand Up @@ -118,6 +118,11 @@ void FileEngine::pasteFiles(QString destDirectory, bool nonprivileged)
}

foreach (QString fileName, files) {
if (!exists(fileName)) {
emit error(ErrorCopyFailed, fileName);
return;
}

QFileInfo fileInfo(fileName);
QString newName = dest.absoluteFilePath(fileInfo.fileName());

Expand Down

0 comments on commit 67f5361

Please sign in to comment.