[gnome-commander/Implement_CppCheck_suggestions] Remove same if condition



commit baacfeaf8938b40591dde748ae30584df1f822de
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Mar 13 22:23:15 2019 +0100

    Remove same if condition

 src/eggcellrendererkeys.cc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/eggcellrendererkeys.cc b/src/eggcellrendererkeys.cc
index 062aa2a2..3b9b3806 100644
--- a/src/eggcellrendererkeys.cc
+++ b/src/eggcellrendererkeys.cc
@@ -475,12 +475,15 @@ static gboolean grab_key_callback (GtkWidget *widget, GdkEventKey *event, EggCel
 
     // filter consumed modifiers
     if (keys->accel_mode == GTK_CELL_RENDERER_ACCEL_MODE_GTK)
+    {
         accel_mods &= ~consumed_modifiers;
 
-    // put shift back if it changed the case of the key, not otherwise.
-    if (keys->accel_mode == GTK_CELL_RENDERER_ACCEL_MODE_GTK)
+        // put shift back if it changed the case of the key, not otherwise.
         if (accel_key != event->keyval)
+        {
             accel_mods |= GDK_SHIFT_MASK;
+        }
+    }
 
     if (accel_mods == 0)
         switch (event->keyval)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]