aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2012-09-30 18:37:59 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2012-09-30 18:37:59 +0000
commit8b7686e9b880cce78a1c8ea0a27c4e1764556c70 (patch)
tree3bde64b33ef7a1ad6e5ce32d8bfec2c1239c3649 /ui/gtk
parent296d2900a1e2b132c98d828f14e19a0c47328764 (diff)
use the correct status bar icon for the capture comment
if we have an empty capture comment (an existing comment was deleted), we should use the same icon as if no comment was present svn path=/trunk/; revision=45227
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/main_statusbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/main_statusbar.c b/ui/gtk/main_statusbar.c
index 53ec9b9bab..df6f77fdb2 100644
--- a/ui/gtk/main_statusbar.c
+++ b/ui/gtk/main_statusbar.c
@@ -687,7 +687,8 @@ status_capture_comment_update(void)
comment_str = cf_read_shb_comment(&cfile);
- if(comment_str != NULL){
+ /* *comment_str==0x0 -> comment exists, but it's empty */
+ if(comment_str!=NULL && *comment_str!=0x0){
gtk_widget_show(capture_comment);
}else{
gtk_widget_show(capture_comment_none);