]> cloud.milkyroute.net Git - dolphin.git/commitdiff
dolphinview: add error message when renaming failed in dialog mode
authorJin Liu <m.liu.jin@gmail.com>
Fri, 11 Oct 2024 04:45:09 +0000 (12:45 +0800)
committerJin Liu <m.liu.jin@gmail.com>
Fri, 11 Oct 2024 11:43:30 +0000 (19:43 +0800)
BUG: 481561

src/views/dolphinview.cpp

index 9d6a449c9fa5ea2f6336028237c3591a0381c1c6..17023ae5f445d7d8e556ffaf8d4f0d25684b9553 100644 (file)
@@ -758,6 +758,9 @@ void DolphinView::renameSelectedItems()
     } else {
         KIO::RenameFileDialog *dialog = new KIO::RenameFileDialog(items, this);
         connect(dialog, &KIO::RenameFileDialog::renamingFinished, this, &DolphinView::slotRenameDialogRenamingFinished);
+        connect(dialog, &KIO::RenameFileDialog::error, this, [this](KJob *job) {
+            KMessageBox::error(this, job->errorString());
+        });
 
         dialog->open();
     }