diff options
| author | Frank Reininghaus <[email protected]> | 2013-06-10 21:15:53 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-06-10 21:19:56 +0200 |
| commit | 15b34a0d05e62f2056120003423a33e79329b0c4 (patch) | |
| tree | e2535cf79b5dda3a87380f1cce43ff24a456ae3e /src/kitemviews/kstandarditemlistwidget.h | |
| parent | 2f51debbea28973c6c9117a0aae806d41f83b03b (diff) | |
Do not rename files unexpectedly when changing the URL
If the role editor loses focus, it considers the current renaming
operation finished, and tells DolphinView to rename the file. This is a
problem when changing the directory, because the URL change happens
before DolphinView receives the signal, which results in a file in the
new directory being renamed unexpectedly.
The solution is to establish the connection to the
slotRoleEditingFinished signal only when the "rename inline" editor is
opened, and disconnect it when renaming is finished or canceled or the
URL changes.
BUG: 319912
FIXED-IN: 4.10.5
REVIEW: 110908
Diffstat (limited to 'src/kitemviews/kstandarditemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.h b/src/kitemviews/kstandarditemlistwidget.h index 386f60e4b..ecf3a3b60 100644 --- a/src/kitemviews/kstandarditemlistwidget.h +++ b/src/kitemviews/kstandarditemlistwidget.h @@ -160,8 +160,8 @@ protected: private slots: void slotCutItemsChanged(); - void slotRoleEditingCanceled(int index, const QByteArray& role, const QVariant& value); - void slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value); + void slotRoleEditingCanceled(const QByteArray& role, const QVariant& value); + void slotRoleEditingFinished(const QByteArray& role, const QVariant& value); private: void triggerCacheRefreshing(); |
