Make RenameDialog modal again.

Summary:
The rename dialog used to be modal, but commit
828ba8902c changed the behavior without
really explaining why.

Test Plan: disable inline renaming and rename something.

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17621
This commit is contained in:
Elvis Angelaccio 2018-12-17 22:51:42 +01:00
parent 34ebf8e0e8
commit 9581a27328
2 changed files with 2 additions and 6 deletions

View file

@ -105,9 +105,7 @@ void FoldersPanel::rename(const KFileItem& item)
m_controller->view()->editRole(index, "text"); m_controller->view()->editRole(index, "text");
} else { } else {
RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item); RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item);
dialog->show(); dialog->open();
dialog->raise();
dialog->activateWindow();
} }
} }

View file

@ -638,9 +638,7 @@ void DolphinView::renameSelectedItems()
RenameDialog* dialog = new RenameDialog(this, items); RenameDialog* dialog = new RenameDialog(this, items);
connect(dialog, &RenameDialog::renamingFinished, this, &DolphinView::slotRenameDialogRenamingFinished); connect(dialog, &RenameDialog::renamingFinished, this, &DolphinView::slotRenameDialogRenamingFinished);
dialog->show(); dialog->open();
dialog->raise();
dialog->activateWindow();
} }
// Assure that the current index remains visible when KFileItemModel // Assure that the current index remains visible when KFileItemModel