]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.cpp
Use QMessageBox for toggleWarning if possible
[lyx.git] / src / frontends / qt4 / GuiView.cpp
index af594cba614b882ed0de52e740c384b2196606ae..0eb48cfedcf0cddfd134fdfa8ae65621b4e0ccfd 100644 (file)
@@ -3616,12 +3616,9 @@ bool GuiView::GuiViewPrivate::asyncBufferProcessing(
                // We are asynchronous, so we don't know here anything about the success
                return true;
        } else {
-#endif
-               // this will be run unconditionally in case EXPORT_in_THREAD
-               // is not defined.
                Buffer::ExportStatus status;
                if (syncFunc) {
-                       status = (used_buffer->*syncFunc)(format, true);
+                       status = (used_buffer->*syncFunc)(format, false);
                } else if (previewFunc) {
                        status = (used_buffer->*previewFunc)(format);
                } else
@@ -3630,9 +3627,19 @@ bool GuiView::GuiViewPrivate::asyncBufferProcessing(
                (void) asyncFunc;
                return (status == Buffer::ExportSuccess
                                || status == Buffer::PreviewSuccess);
-#if EXPORT_in_THREAD
-       // the end of the else clause in that case.
        }
+#else
+       Buffer::ExportStatus status;
+       if (syncFunc) {
+               status = (used_buffer->*syncFunc)(format, true);
+       } else if (previewFunc) {
+               status = (used_buffer->*previewFunc)(format);
+       } else
+               return false;
+       handleExportStatus(gv_, status, format);
+       (void) asyncFunc;
+       return (status == Buffer::ExportSuccess
+                       || status == Buffer::PreviewSuccess);
 #endif
 }