Author: akv
Date: 2009-12-22 21:20:39 +0100 (Tue, 22 Dec 2009)
New Revision: 2839

Modified:
   trunk/src/rs-dir-selector.c
Log:
Fixed problem with unhandled error.

Modified: trunk/src/rs-dir-selector.c
===================================================================
--- trunk/src/rs-dir-selector.c 2009-12-21 23:08:04 UTC (rev 2838)
+++ trunk/src/rs-dir-selector.c 2009-12-22 20:20:39 UTC (rev 2839)
@@ -382,8 +382,8 @@
        {
                /* Save this, realize() will catch it later */
                GtkTreeSelection *selection = gtk_tree_view_get_selection(view);
-               gtk_tree_model_get_iter(model, &iter, path);
-               gtk_tree_selection_select_iter(selection, &iter);
+               if (gtk_tree_model_get_iter(model, &iter, path))
+                       gtk_tree_selection_select_iter(selection, &iter);
        }
 
        gtk_tree_path_free(path);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to