fix macro dialog
authorMr.LeQuocTuan <Mr.LeQuocTuan@79bd180b-0a32-48ee-ac55-ada8cae9df61>
Sun, 26 Jul 2009 02:36:39 +0000 (02:36 +0000)
committerMr.LeQuocTuan <Mr.LeQuocTuan@79bd180b-0a32-48ee-ac55-ada8cae9df61>
Sun, 26 Jul 2009 02:36:39 +0000 (02:36 +0000)
git-svn-id: svn://localhost/trunk@48 79bd180b-0a32-48ee-ac55-ada8cae9df61

setup/dlg_macro_table.cpp

index 80224fd..500b17b 100644 (file)
@@ -311,12 +311,12 @@ void check_last_macro_in_list(GtkListStore* list)
 
         // get key of item
         gtk_tree_model_get(GTK_TREE_MODEL(list), &iter, COL_KEY, &key, -1);
-    }
 
-    // if key is value used for NULL item
-    if (strcmp(key, STR_NULL_ITEM) == 0)
-    {
-        return;
+        // if key is value used for NULL item
+        if (strcmp(key, STR_NULL_ITEM) == 0)
+        {
+            return;
+        }
     }
 
     // if last item is valid item or no item in list, add new NULL item