diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-13 00:31:54 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-13 00:31:54 +0000 |
commit | 5df0b2fe77643351adf9aac31e4222b04e7b1548 (patch) | |
tree | c89e92115d3050a35604e4cc92bb91355970e255 /gtk/wlan_stat_dlg.c | |
parent | a2843a25e024e9730ae8a1c7673084aeea0f5f97 (diff) |
Do not update window title when destroying the dialog.
svn path=/trunk/; revision=24314
Diffstat (limited to 'gtk/wlan_stat_dlg.c')
-rw-r--r-- | gtk/wlan_stat_dlg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/wlan_stat_dlg.c b/gtk/wlan_stat_dlg.c index 3bfc9a6662..8c6241652d 100644 --- a/gtk/wlan_stat_dlg.c +++ b/gtk/wlan_stat_dlg.c @@ -82,11 +82,13 @@ wlanstat_reset (void *phs) wlanstat_t* wlan_stat = (wlanstat_t *)phs; wlan_ep_t* list = (wlan_ep_t*)wlan_stat->ep_list; wlan_ep_t* tmp = NULL; - char title[256]; - g_snprintf (title, 255, "Wireshark: WLAN Traffic Statistics: %s", - cf_get_display_name(&cfile)); - gtk_window_set_title(GTK_WINDOW(wlanstat_dlg_w), title); + if (wlanstat_dlg_w != NULL) { + char title[256]; + g_snprintf (title, 255, "Wireshark: WLAN Traffic Statistics: %s", + cf_get_display_name(&cfile)); + gtk_window_set_title(GTK_WINDOW(wlanstat_dlg_w), title); + } /* remove all entries from the clist */ gtk_clist_clear (GTK_CLIST(wlan_stat->table)); |