From b11a9a81c0047b3371af399933089041b4a044ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Fri, 25 Nov 2022 08:08:01 +0200
Subject: [PATCH 1/1] Fixed crash when editing a bookmark folder
Also hide the Duplicate button, folder duplication has not been
implemented.
src/ui/util.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/ui/util.c b/src/ui/util.c
index a2c41fbc..02935469 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -3348,6 +3348,9 @@ static const iArray *makeBookmarkFolderItems_(iBool withNullTerminator) {
}
iWidget *makeBookmarkEditor_Widget(iBool isFolder, iBool withDup) {
withDup = iFalse;
const iMenuItem dupActions[] = {
{ "${menu.dup}", 0, 0, "bmed.dup" },
{ "---" },
@@ -3454,7 +3457,10 @@ iWidget *makeBookmarkEditor_Widget(iBool isFolder, iBool withDup) {
as_Widget(inputs[i])->rect.size.x = inputWidth;
}
}
((iWidget *) findChild_Widget(dlg, "bmed.setident"))->rect.size.x = inputWidth;
iWidget *setIdent = findChild_Widget(dlg, "bmed.setident");
if (setIdent) {
setIdent->rect.size.x = inputWidth;
}
addChild_Widget(dlg, iClob(makePadding_Widget(gap_UI)));
addChild_Widget(dlg,
iClob(makeDialogButtons_Widget(withDup ? dupActions : actions,
--
2.25.1
text/plain
This content has been proxied by September (3851b).