summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-open-with-dialog.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-13 09:01:26 +0200
committerZenWalker <[email protected]>2019-06-15 13:35:14 +0200
commitcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (patch)
treeaf5a560d0b78ba68971622f1de2009cc3012b391 /libcaja-private/caja-open-with-dialog.c
parent3f0413a80e345b995e200fe7c94179435491b24d (diff)
downloadcaja-cbd6b367e9b05c08bff88ee1cfa03c09c7ee2558.tar.bz2
caja-cbd6b367e9b05c08bff88ee1cfa03c09c7ee2558.tar.xz
caja-open-with-dialog: cppcheck: Redundant condition
Fixes cppcheck warning: [libcaja-private/caja-open-with-dialog.c:265]: (style) Redundant condition: !dialog->details->add_mode. 'A || (!A && B)' is equivalent to 'A || B'
Diffstat (limited to 'libcaja-private/caja-open-with-dialog.c')
-rw-r--r--libcaja-private/caja-open-with-dialog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcaja-private/caja-open-with-dialog.c b/libcaja-private/caja-open-with-dialog.c
index 8d21c7cd..24bb8bac 100644
--- a/libcaja-private/caja-open-with-dialog.c
+++ b/libcaja-private/caja-open-with-dialog.c
@@ -263,8 +263,7 @@ add_or_find_application (CajaOpenWithDialog *dialog)
}
should_set_default = (dialog->details->add_mode) ||
- (!dialog->details->add_mode &&
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox)));
+ gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox));
success = TRUE;
if (should_set_default)