Alert::prompt(ttl, msg, 1, 1,
_("&Cancel export"), _("Co&ntinue"));
if (ret == 0) {
- Systemcall::killscript();
- // stop busy signal immediately so that in the subsequent
- // "Export canceled" prompt the status bar icons are accurate.
- Q_EMIT scriptKilled();
+ cancelExport();
}
}
break;
}
case LFUN_EXPORT_CANCEL: {
- Systemcall::killscript();
- Q_EMIT scriptKilled();
+ cancelExport();
break;
}
case LFUN_BUFFER_SWITCH: {
}
+void GuiView::cancelExport()
+{
+ Systemcall::killscript();
+ // stop busy signal immediately so that in the subsequent
+ // "Export canceled" prompt the status bar icons are accurate.
+ Q_EMIT scriptKilled();
+}
+
+
void GuiView::toggleFullScreen()
{
setWindowState(windowState() ^ Qt::WindowFullScreen);
///
bool lfunUiToggle(std::string const & ui_component);
///
+ /// kill the script and hide export-in-progress status bar icons
+ void cancelExport();
+ ///
void toggleFullScreen();
/// \return whether we did anything
bool insertLyXFile(docstring const & fname, bool ignorelang = false);