- s = ctrl_getset(b, "Session", "savedsessions",
- "Load, save or delete a stored session");
- ctrl_columns(s, 2, 75, 25);
- ssd->sesslist = sesslist;
- ssd->editbox = ctrl_editbox(s, "Saved Sessions", 'e', 100,
- HELPCTX(session_saved),
- sessionsaver_handler, P(ssd), P(NULL));
- ssd->editbox->generic.column = 0;
- /* Reset columns so that the buttons are alongside the list, rather
- * than alongside that edit box. */
- ctrl_columns(s, 1, 100);
- ctrl_columns(s, 2, 75, 25);
- ssd->listbox = ctrl_listbox(s, NULL, NO_SHORTCUT,
- HELPCTX(session_saved),
- sessionsaver_handler, P(ssd));
- ssd->listbox->generic.column = 0;
- ssd->listbox->listbox.height = 7;
+ /*
+ * The Load/Save panel is available even in mid-session.
+ */
+ s = ctrl_getset(b, "Session", "savedsessions",
+ "Load, save or delete a stored session");
+ ctrl_columns(s, 2, 75, 25);
+ ssd->sesslist = sesslist;
+ ssd->editbox = ctrl_editbox(s, "Saved Sessions", 'e', 100,
+ HELPCTX(session_saved),
+ sessionsaver_handler, P(ssd), P(NULL));
+ ssd->editbox->generic.column = 0;
+ /* Reset columns so that the buttons are alongside the list, rather
+ * than alongside that edit box. */
+ ctrl_columns(s, 1, 100);
+ ctrl_columns(s, 2, 75, 25);
+ ssd->listbox = ctrl_listbox(s, NULL, NO_SHORTCUT,
+ HELPCTX(session_saved),
+ sessionsaver_handler, P(ssd));
+ ssd->listbox->generic.column = 0;
+ ssd->listbox->listbox.height = 7;
+ if (!midsession) {