[gthumb: 2/20] [picasaweb] fixed crash when connection to the server



commit 9f03355412873fbb4684e799996bc8fc9ee39ce1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Mar 28 14:25:57 2010 +0200

    [picasaweb] fixed crash when connection to the server
    
    check if a connection is available before using it

 extensions/picasaweb/dlg-export-to-picasaweb.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/picasaweb/dlg-export-to-picasaweb.c b/extensions/picasaweb/dlg-export-to-picasaweb.c
index 229c51a..5cb2a10 100644
--- a/extensions/picasaweb/dlg-export-to-picasaweb.c
+++ b/extensions/picasaweb/dlg-export-to-picasaweb.c
@@ -653,7 +653,8 @@ static void
 auto_select_account (DialogData *data)
 {
 	gtk_widget_hide (data->dialog);
-	gth_task_dialog (GTH_TASK (data->conn), FALSE);
+	if (data->conn != NULL)
+		gth_task_dialog (GTH_TASK (data->conn), FALSE);
 
 	if (data->accounts != NULL) {
 		if (data->email != NULL) {



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