2005-06-15 [colin] 1.9.11cvs75
[claws.git] / src / summaryview.c
index c8e68e5..7ff2078 100644 (file)
@@ -5448,6 +5448,10 @@ void summaryview_export_mbox_list(SummaryView *summaryview)
 
 void summaryview_lock(SummaryView *summaryview, FolderItem *item)
 {
 
 void summaryview_lock(SummaryView *summaryview, FolderItem *item)
 {
+       if (!summaryview || !summaryview->folder_item || !item) {
+               return;
+       }
+
        if (summaryview->folder_item->folder == item->folder) {
                gtk_widget_set_sensitive(summaryview->ctree, FALSE);
        }
        if (summaryview->folder_item->folder == item->folder) {
                gtk_widget_set_sensitive(summaryview->ctree, FALSE);
        }