summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2018-01-04 09:55:18 -0500
committerKurt Hindenburg <[email protected]>2018-01-04 09:55:26 -0500
commite67dfac0f1c997e3bad9dff38652697ac3c09f92 (patch)
tree35a6403dd88250c5a783715e315431a5a16a3095
parent2a2716e685e7ed43462725056a1e76f56f7e72db (diff)
simplify : !A || (A && B) is equivalent to !A || B
-rw-r--r--src/EditProfileDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp
index 0aeb0da..bbdc894 100644
--- a/src/EditProfileDialog.cpp
+++ b/src/EditProfileDialog.cpp
@@ -180,7 +180,7 @@ bool EditProfileDialog::isValidProfileName()
QFileInfo fileInfo(_profile->path());
if (fileInfo.exists() && !fileInfo.isWritable()) {
if (!_tempProfile->isPropertySet(Profile::Name)
- || (_tempProfile->isPropertySet(Profile::Name) && _tempProfile->name() == _profile->name())) {
+ || (_tempProfile->name() == _profile->name())) {
KMessageBox::sorry(this,
i18n("<p>Konsole does not have permission to save this profile to:<br /> \"%1\"</p>"
"<p>To be able to save settings you can either change the permissions "