[gnome-commander] GnomeCmdFileSelector: do not call update_style() for non-existent file list



commit ab3239892fb8e98a21330821c240e9cb4384bc2c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Aug 1 15:46:30 2010 +0200

    GnomeCmdFileSelector: do not call update_style() for non-existent file list

 src/gnome-cmd-file-selector.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 015362d..296e27c 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -936,7 +936,9 @@ void GnomeCmdFileSelector::update_connections()
 void GnomeCmdFileSelector::update_style()
 {
     con_combo->update_style();
-    list->update_style();
+
+    if (list)
+        list->update_style();
 
     if (priv->realized)
         update_files();



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