diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 1118758b..ddff096a 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1216,6 +1216,11 @@ iWidget *makeBookmarkEditor_Widget(void) { | |||
1216 | return dlg; | 1216 | return dlg; |
1217 | } | 1217 | } |
1218 | 1218 | ||
1219 | static void enableSidebars_(void) { | ||
1220 | setFlags_Widget(findWidget_App("sidebar"), disabled_WidgetFlag, iFalse); | ||
1221 | setFlags_Widget(findWidget_App("sidebar2"), disabled_WidgetFlag, iFalse); | ||
1222 | } | ||
1223 | |||
1219 | static iBool handleBookmarkCreationCommands_SidebarWidget_(iWidget *editor, const char *cmd) { | 1224 | static iBool handleBookmarkCreationCommands_SidebarWidget_(iWidget *editor, const char *cmd) { |
1220 | if (equal_Command(cmd, "bmed.accept") || equal_Command(cmd, "cancel")) { | 1225 | if (equal_Command(cmd, "bmed.accept") || equal_Command(cmd, "cancel")) { |
1221 | if (equal_Command(cmd, "bmed.accept")) { | 1226 | if (equal_Command(cmd, "bmed.accept")) { |
@@ -1230,6 +1235,8 @@ static iBool handleBookmarkCreationCommands_SidebarWidget_(iWidget *editor, cons | |||
1230 | postCommand_App("bookmarks.changed"); | 1235 | postCommand_App("bookmarks.changed"); |
1231 | } | 1236 | } |
1232 | destroy_Widget(editor); | 1237 | destroy_Widget(editor); |
1238 | /* Sidebars are disabled when a dialog is opened. */ | ||
1239 | enableSidebars_(); | ||
1233 | return iTrue; | 1240 | return iTrue; |
1234 | } | 1241 | } |
1235 | return iFalse; | 1242 | return iFalse; |
@@ -1260,8 +1267,7 @@ static iBool handleFeedSettingCommands_(iWidget *dlg, const char *cmd) { | |||
1260 | if (equal_Command(cmd, "cancel")) { | 1267 | if (equal_Command(cmd, "cancel")) { |
1261 | destroy_Widget(dlg); | 1268 | destroy_Widget(dlg); |
1262 | /* Sidebars are disabled when a dialog is opened. */ | 1269 | /* Sidebars are disabled when a dialog is opened. */ |
1263 | setFlags_Widget(findWidget_App("sidebar"), disabled_WidgetFlag, iFalse); | 1270 | enableSidebars_(); |
1264 | setFlags_Widget(findWidget_App("sidebar2"), disabled_WidgetFlag, iFalse); | ||
1265 | return iTrue; | 1271 | return iTrue; |
1266 | } | 1272 | } |
1267 | if (equal_Command(cmd, "feedcfg.accept")) { | 1273 | if (equal_Command(cmd, "feedcfg.accept")) { |
@@ -1297,8 +1303,7 @@ static iBool handleFeedSettingCommands_(iWidget *dlg, const char *cmd) { | |||
1297 | postCommand_App("bookmarks.changed"); | 1303 | postCommand_App("bookmarks.changed"); |
1298 | destroy_Widget(dlg); | 1304 | destroy_Widget(dlg); |
1299 | /* Sidebars are disabled when a dialog is opened. */ | 1305 | /* Sidebars are disabled when a dialog is opened. */ |
1300 | setFlags_Widget(findWidget_App("sidebar"), disabled_WidgetFlag, iFalse); | 1306 | enableSidebars_(); |
1301 | setFlags_Widget(findWidget_App("sidebar2"), disabled_WidgetFlag, iFalse); | ||
1302 | return iTrue; | 1307 | return iTrue; |
1303 | } | 1308 | } |
1304 | return iFalse; | 1309 | return iFalse; |