[gnome-commander] Fixes ambiguous if-else



commit 05364b5f7b3c881537f05ac7df2a4da2783bfec4
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Fri Apr 14 15:19:39 2017 +0200

    Fixes ambiguous if-else

 src/dialogs/gnome-cmd-key-shortcuts-dialog.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
index ca72a1f..ba36153 100644
--- a/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
+++ b/src/dialogs/gnome-cmd-key-shortcuts-dialog.cc
@@ -588,6 +588,7 @@ static void cell_edited_callback (GtkCellRendererText *cell, gchar *path_string,
     gint col = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (cell), "column"));
 
     if (gtk_tree_model_get_iter (model, &iter, path))
+    {
         if (col==COL_ACTION && GnomeCmdKeyShortcutsDialog::user_actions)
             gtk_list_store_set (GTK_LIST_STORE (model), &iter,
                                 col, new_text,
@@ -597,6 +598,7 @@ static void cell_edited_callback (GtkCellRendererText *cell, gchar *path_string,
             gtk_list_store_set (GTK_LIST_STORE (model), &iter,
                                 col, new_text,
                                 -1);
+    }
 
     gtk_tree_path_free (path);
 }


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