im.pidgin.pidgin: cd26f6af7f8ee75ef909ae08b06ad5a1978051d9

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 22:09:47 EDT 2007


-----------------------------------------------------------------
Revision: cd26f6af7f8ee75ef909ae08b06ad5a1978051d9
Ancestor: 57d44c78035b6b60004e0097888d27e9f704f801
Author: datallah at pidgin.im
Date: 2007-10-10T01:45:37
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkaccount.c

ChangeLog: 

I'm not sure if this is possible unless the combo box doesn't have any entries. Fixes CID 305

-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c	586d9237b30a48b007333a631ba34d92ee263d48
+++ pidgin/gtkaccount.c	1a3403ea21c87a3425faaad3c238c87ebc0be0c6
@@ -1328,8 +1328,9 @@ ok_account_prefs_cb(GtkWidget *w, Accoun
 					break;
 
 				case PURPLE_PREF_STRING_LIST:
-					gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter);
-					gtk_tree_model_get(gtk_combo_box_get_model(GTK_COMBO_BOX(widget)), &iter, 1, &value2, -1);
+					value2 = NULL;
+					if (gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter))
+						gtk_tree_model_get(gtk_combo_box_get_model(GTK_COMBO_BOX(widget)), &iter, 1, &value2, -1);
 					purple_account_set_string(account, setting, value2);
 					break;
 


More information about the Commits mailing list