fix fat-fingered crash when v (hiding msgview) is pressed just before c (check signature)
authorPaul <paul@claws-mail.org>
Tue, 28 Apr 2020 13:01:07 +0000 (14:01 +0100)
committerPaul <paul@claws-mail.org>
Tue, 28 Apr 2020 13:01:07 +0000 (14:01 +0100)
src/mimeview.c

index 28dd069ca6ef7cce40f99f7d3adbe3d6ca7cdd6e..f91ea146f41a821af23e3ac6b07c6d59333ac3cd 100644 (file)
@@ -1336,7 +1336,7 @@ static void check_signature_cb(GtkWidget *widget, gpointer user_data)
        MimeView *mimeview = (MimeView *) user_data;
        MimeInfo *mimeinfo = mimeview->siginfo;
        
        MimeView *mimeview = (MimeView *) user_data;
        MimeInfo *mimeinfo = mimeview->siginfo;
        
-       if (mimeinfo == NULL)
+       if (mimeinfo == NULL || !noticeview_is_visible(mimeview->siginfoview))
                return;
 #ifdef USE_PTHREAD
        if (mimeview->check_data)
                return;
 #ifdef USE_PTHREAD
        if (mimeview->check_data)