From 3c1691e6776c9e91d1752c0d38d4dd2d616fce07 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 5 Apr 2014 23:00:17 +0200 Subject: [PATCH 1/1] Fix crash on opening Tags window Xaw Suppressing the optional book button made the Xaw generic popup crash, because the following button had the SAME_ROW modality, and was thus positioned w.r.t. a non-existent widget. --- dialogs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dialogs.c b/dialogs.c index 0c430dd..c8505ee 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1218,6 +1218,7 @@ NewTagsPopup (char *text, char *msg) char *title = bookUp ? _("Edit book") : _("Tags"); tagsOptions[2].type = bookUp ? Button : Skip; + tagsOptions[3].min = bookUp ? SAME_ROW : 0; if(DialogExists(TagsDlg)) { // if already exists, alter title and content SetWidgetText(&tagsOptions[1], text, TagsDlg); SetDialogTitle(TagsDlg, title); -- 1.7.0.4