]> cloud.milkyroute.net Git - dolphin.git/commit
dolphinview: when rename dialog finishes, immediately update the model and the selection
authorJin Liu <m.liu.jin@gmail.com>
Fri, 11 Oct 2024 08:21:14 +0000 (16:21 +0800)
committerJin Liu <m.liu.jin@gmail.com>
Sat, 12 Oct 2024 13:23:46 +0000 (21:23 +0800)
commit1ba5168e39b270744a8e5c033ec24900b337f908
tree2d26b3ab377ff162b3d1120b4ba8604cb233d38a
parenta340362524b5979474bb55705e37f40ba89f6f5b
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
src/views/dolphinview.cpp
src/views/dolphinview.h