From 48c5304c0204915ac449145adc69e845e558023f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sat, 19 Dec 2009 19:50:19 +0000 Subject: [PATCH] pass format as argument git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32593 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c0230751d5..886a291472 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2687,7 +2687,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) format = doc_buffer->getDefaultOutputFormat(); #if EXPORT_in_THREAD && (QT_VERSION >= 0x040400) QFuture f = QtConcurrent::run(exportAndDestroy, - doc_buffer->clone(), cmd.argument()); + doc_buffer->clone(), from_utf8(format)); d.setPreviewFuture(f); #else doc_buffer->doExport(format, true); @@ -2702,7 +2702,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) format = doc_buffer->getDefaultOutputFormat(); #if EXPORT_in_THREAD && (QT_VERSION >= 0x040400) QFuture f = QtConcurrent::run(previewAndDestroy, - doc_buffer->clone(), cmd.argument()); + doc_buffer->clone(), from_utf8(format)); d.setPreviewFuture(f); #else doc_buffer->preview(format); @@ -2718,7 +2718,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) format = master->getDefaultOutputFormat(); #if EXPORT_in_THREAD && (QT_VERSION >= 0x040400) QFuture f = QtConcurrent::run(exportAndDestroy, - master->clone(), cmd.argument()); + master->clone(), from_utf8(format)); d.setPreviewFuture(f); #else master->doExport(format, true); @@ -2732,7 +2732,7 @@ bool GuiView::dispatch(FuncRequest const & cmd) format = master->getDefaultOutputFormat(); #if EXPORT_in_THREAD && (QT_VERSION >= 0x040400) QFuture f = QtConcurrent::run(previewAndDestroy, - master->clone(), cmd.argument()); + master->clone(), from_utf8(format)); d.setPreviewFuture(f); #else master->preview(format);