Commit 9581a273 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Make RenameDialog modal again.

Summary:
The rename dialog used to be modal, but commit
828ba890 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
parent 34ebf8e0
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment