diff options
| author | Jin Liu <[email protected]> | 2024-10-11 16:21:14 +0800 |
|---|---|---|
| committer | Jin Liu <[email protected]> | 2024-10-12 21:23:46 +0800 |
| commit | 1ba5168e39b270744a8e5c033ec24900b337f908 (patch) | |
| tree | 2d26b3ab377ff162b3d1120b4ba8604cb233d38a /src/views/dolphinview.h | |
| parent | a340362524b5979474bb55705e37f40ba89f6f5b (diff) | |
dolphinview: when rename dialog finishes, immediately update the model and the selection
On sucessful return of the rename dialog, we update
the model and the selection immediately to reflect
the new name. This is to avoid the short duration
after the rename during which the selection is lost.
Currently, after the rename dialog finishes, the selection
is briefly lost for about 1 second until the view
automatically refreshes.
This patch updates the model and selection immediately
after the dialog finishes, so the renamed file is still
selected.
BUG: 481717
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index c985f4eb9..e78a9ca9d 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -698,7 +698,6 @@ private Q_SLOTS: void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent *event); void slotModelChanged(KItemModelBase *current, KItemModelBase *previous); void slotMouseButtonPressed(int itemIndex, Qt::MouseButtons buttons); - void slotRenameDialogRenamingFinished(const QList<QUrl> &urls); void slotSelectedItemTextPressed(int index); void slotItemCreatedFromJob(KIO::Job *, const QUrl &, const QUrl &to); void slotItemLinkCreatedFromJob(KIO::Job *, const QUrl &, const QString &, const QUrl &to); |
