gedit r6495 - in trunk: . plugins/filebrowser



Author: jessevdk
Date: Sat Sep  6 16:07:35 2008
New Revision: 6495
URL: http://svn.gnome.org/viewvc/gedit?rev=6495&view=rev

Log:
	* plugins/filebrowser/gedit-file-browser-store.c: fixed crasher when
	refreshing during async operations like mounting


Modified:
   trunk/ChangeLog
   trunk/plugins/filebrowser/gedit-file-browser-store.c

Modified: trunk/plugins/filebrowser/gedit-file-browser-store.c
==============================================================================
--- trunk/plugins/filebrowser/gedit-file-browser-store.c	(original)
+++ trunk/plugins/filebrowser/gedit-file-browser-store.c	Sat Sep  6 16:07:35 2008
@@ -1525,6 +1525,9 @@
 			  FileBrowserNode * node, gboolean remove_children)
 {
 	FileBrowserNodeDir *dir;
+	
+	if (node == NULL)
+		return;
 
 	if (!NODE_IS_DIR (node) || !NODE_LOADED (node))
 		return;
@@ -3028,7 +3031,7 @@
 {
 	g_return_if_fail (GEDIT_IS_FILE_BROWSER_STORE (model));
 
-	if (model->priv->root == NULL)
+	if (model->priv->root == NULL || model->priv->virtual_root == NULL)
 		return;
 
 	/* Clear the model */



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