mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
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:
parent
34ebf8e0e8
commit
9581a27328
|
@ -105,9 +105,7 @@ void FoldersPanel::rename(const KFileItem& item)
|
|||
m_controller->view()->editRole(index, "text");
|
||||
} else {
|
||||
RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item);
|
||||
dialog->show();
|
||||
dialog->raise();
|
||||
dialog->activateWindow();
|
||||
dialog->open();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -638,9 +638,7 @@ void DolphinView::renameSelectedItems()
|
|||
RenameDialog* dialog = new RenameDialog(this, items);
|
||||
connect(dialog, &RenameDialog::renamingFinished, this, &DolphinView::slotRenameDialogRenamingFinished);
|
||||
|
||||
dialog->show();
|
||||
dialog->raise();
|
||||
dialog->activateWindow();
|
||||
dialog->open();
|
||||
}
|
||||
|
||||
// Assure that the current index remains visible when KFileItemModel
|
||||
|
|
Loading…
Reference in a new issue