#if (QT_VERSION >= 0x040400)
connect(&d.autosave_watcher_, SIGNAL(finished()), this,
- SLOT(processingThreadFinished()));
+ SLOT(autoSaveThreadFinished()));
connect(&d.processing_thread_watcher_, SIGNAL(finished()), this,
SLOT(processingThreadFinished()));
}
-void GuiView::processingThreadFinished()
+void GuiView::processingThreadFinished(bool show_errors)
{
QFutureWatcher<docstring> const * watcher =
static_cast<QFutureWatcher<docstring> const *>(sender());
message(watcher->result());
updateToolbars();
- errors(d.last_export_format);
+ if (show_errors) {
+ errors(d.last_export_format);
+ }
d.processing_cursor_timer_.stop();
restoreCursorShapes();
d.indicates_processing_ = false;
}
+void GuiView::processingThreadFinished()
+{
+ processingThreadFinished(true);
+}
+
+void GuiView::autoSaveThreadFinished()
+{
+ processingThreadFinished(false);
+}
+
#else
void GuiView::setCursorShapes(Qt::CursorShape)
}
+void GuiView::processingThreadFinished(bool)
+{
+}
+
+
void GuiView::processingThreadFinished()
{
}
+
+
+void GuiView::autoSaveThreadFinished()
+{
+}
#endif
/// For completion of autosave or export threads.
void processingThreadStarted();
+ void processingThreadFinished(bool show_errors);
void processingThreadFinished();
+ void autoSaveThreadFinished();
void indicateProcessing();
/// must be called in GUI thread