diff options
| author | Emmanuel Pescosta <[email protected]> | 2013-12-03 19:00:28 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2013-12-03 19:00:28 +0100 |
| commit | c4c999d2431285a8c49f43130773ae562dc06b8b (patch) | |
| tree | ae2b2fde57716c3475637b4027d28637650a3cf8 /src/views/dolphinview.cpp | |
| parent | c3ad6c74064c842c2514a3a9bbc5574e631fd6dc (diff) | |
Fix Bug 328262 - rename bug if you cancel when folder already exists
Only connect the renamingFailed signal if there is no item with the new name in the model yet.
BUG: 328262
FIXED-IN: 4.11.5
REVIEW: 114228
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 20bc9f522..db9d8d22f 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1492,7 +1492,9 @@ void DolphinView::slotRoleEditingFinished(int index, const QByteArray& role, con } KonqOperations* op = KonqOperations::renameV2(this, oldUrl, newName); - if (op) { + if (op && !newNameExistsAlready) { + // Only connect the renamingFailed signal if there is no item with the new name + // in the model yet, see bug 328262. connect(op, SIGNAL(renamingFailed(KUrl,KUrl)), SLOT(slotRenamingFailed(KUrl,KUrl))); } } |
