0.9.0claws83
authorChristoph Hohmann <reboot@gmx.ch>
Sat, 5 Jul 2003 10:23:00 +0000 (10:23 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sat, 5 Jul 2003 10:23:00 +0000 (10:23 +0000)
* src/inc.c
        add NULL pointer checks

(patch by Luke Plant <lukeplant@softhome.net>)
(closes Bug 204 0.9.0 quits on authentication error?!)

ChangeLog.claws
configure.ac
src/inc.c

index 15e6502..12e0064 100644 (file)
@@ -1,3 +1,11 @@
+2003-07-05 [christoph] 0.9.0claws83
+
+       * src/inc.c
+               add NULL pointer checks
+
+       (patch by Luke Plant <lukeplant@softhome.net>)
+       (closes Bug 204 0.9.0 quits on authentication error?!)
+
 2003-07-05 [alfons]    0.9.0claws82
 
        * configure.ac
index b833308..6b4d631 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws82
+EXTRA_VERSION=claws83
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 704a4fe..ad2abaa 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -407,11 +407,12 @@ static void inc_progress_dialog_clear(IncProgressDialog *inc_dialog)
 {
        progress_dialog_set_value(inc_dialog->dialog, 0.0);
        progress_dialog_set_label(inc_dialog->dialog, "");
-       gtk_progress_set_show_text
-               (GTK_PROGRESS(inc_dialog->mainwin->progressbar), FALSE);
-       if (inc_dialog->mainwin)
+       if (inc_dialog->mainwin) {
                gtk_progress_bar_update
                        (GTK_PROGRESS_BAR(inc_dialog->mainwin->progressbar), 0.0);
+               gtk_progress_set_show_text
+                       (GTK_PROGRESS(inc_dialog->mainwin->progressbar), FALSE);
+       }
 }
 
 static void inc_progress_dialog_destroy(IncProgressDialog *inc_dialog)
@@ -420,11 +421,12 @@ static void inc_progress_dialog_destroy(IncProgressDialog *inc_dialog)
 
        inc_dialog_list = g_list_remove(inc_dialog_list, inc_dialog);
 
-       gtk_progress_set_show_text
-               (GTK_PROGRESS(inc_dialog->mainwin->progressbar), FALSE);
-       if (inc_dialog->mainwin)
+       if (inc_dialog->mainwin) {
+               gtk_progress_set_show_text
+                       (GTK_PROGRESS(inc_dialog->mainwin->progressbar), FALSE);
                gtk_progress_bar_update
                        (GTK_PROGRESS_BAR(inc_dialog->mainwin->progressbar), 0.0);
+       }
        progress_dialog_destroy(inc_dialog->dialog);
 
        g_free(inc_dialog);