Author: post
Date: 2011-01-30 17:15:04 +0100 (Sun, 30 Jan 2011)
New Revision: 3808
Modified:
trunk/src/gtk-interface.c
Log:
Don't allow opening a directory while one is already being opened - should fix
two-line iconviews.
Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c 2011-01-29 14:03:05 UTC (rev 3807)
+++ trunk/src/gtk-interface.c 2011-01-30 16:15:04 UTC (rev 3808)
@@ -1328,6 +1328,11 @@
static void
directory_activated(gpointer instance, const gchar *path, RS_BLOB *rs)
{
+ static gboolean opening = FALSE;
+ if (opening)
+ return;
+
+ opening = TRUE;
/* Set this, so directory is reset, if a crash occurs during load, */
/* directory will be reset on next startup */
rs_conf_set_string(CONF_LWD, g_get_home_dir());
@@ -1347,6 +1352,7 @@
/* Restore directory */
rs_conf_set_string(CONF_LWD, path);
+ opening = FALSE;
}
static void
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit