Mercurial > audlegacy-plugins
diff src/bluetooth/gui.c @ 2649:d891ba4be5a5
fixed crash when prefs window was closed while scanning
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Sun, 25 May 2008 23:04:33 +0300 |
parents | 7fbff3287a56 |
children | 229647ca4942 |
line wrap: on
line diff
--- a/src/bluetooth/gui.c Sun May 25 21:44:27 2008 +0300 +++ b/src/bluetooth/gui.c Sun May 25 23:04:33 2008 +0300 @@ -60,6 +60,8 @@ gint dev_no=0; GList *dev; gchar *temp; + if(!window) + return NULL; /* create list store */ store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_STRING); @@ -102,6 +104,8 @@ void refresh_tree() { + if(!window) + return; model = rebuild_model(); gtk_tree_view_set_model(GTK_TREE_VIEW(treeview),GTK_TREE_MODEL(model)); }