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
This commit is contained in:
Martin Kaiser 2012-09-30 18:37:59 +00:00
parent 296d2900a1
commit 8b7686e9b8
1 changed files with 2 additions and 1 deletions

View File

@ -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);