mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +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");
|
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue