dolphinview: after renaming, immediately select the renamed file
Previously, the selection would be lost for about 1 second until the view automatically refreshes. This MR makes it select the renamed file immediately after renaming:
- Fixed a bug in
KFileItem::setData
, which the inline renaming uses to update the file to be renamed in the model to the new name. But the bug preventsm_model->index
to find the updated name later. - Inline renaming now calls
updateSelectionState
after the user presses enter, so the renamed file is immediately selected. - Rename dialog now on finish, updates the model (like in inline renaming) to reflect the new name, and calls
updateSelectionState
, so the renamed file is immediately selected.
Edited by Jin Liu