┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/views/renamedialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp
index f35528074..aae546e7a 100644
--- a/src/views/renamedialog.cpp
+++ b/src/views/renamedialog.cpp
@@ -132,8 +132,7 @@ void RenameDialog::slotButtonClicked(int button)
void RenameDialog::slotTextChanged(const QString &newName)
{
- bool enable = !newName.isEmpty();
- enable &= (m_renameOneItem ? (newName != m_newName) : newName.contains('#'));
+ const bool enable = !newName.isEmpty() && (m_renameOneItem ? (newName != m_newName) : newName.contains('#'));
enableButtonOk(enable);
}