┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/renamedialog.cpp
diff options
context:
space:
mode:
authorMatthias Fuchs <[email protected]>2010-09-21 09:31:04 +0000
committerMatthias Fuchs <[email protected]>2010-09-21 09:31:04 +0000
commita934fd59bc038b90175536309abbf50ebdded0d2 (patch)
treeaeeb881b1d29ad6572acd69bf1bf70cf08dfadbf /src/views/renamedialog.cpp
parentb51083c12b6459ca6c33f022881ece4e83fcedc2 (diff)
Does not use bitwise operators on booleans. Thanks to dfaure for pointing it out.
svn path=/trunk/KDE/kdebase/apps/; revision=1177781
Diffstat (limited to 'src/views/renamedialog.cpp')
-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);
}