]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAlert.cpp
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / GuiAlert.cpp
index 8e12b3eb97b99053f28bee539c6c094d7dd98824..ef4725c84accbc3173abefa5c174c34d99a12320 100644 (file)
@@ -196,7 +196,7 @@ void doWarning(docstring const & title0, docstring const & message,
 void warning(docstring const & title0, docstring const & message,
             bool const & askshowagain)
 {
-#ifdef EXPORT_in_THREAD        
+#ifdef EXPORT_in_THREAD
        InGuiThread<void>().call(&doWarning,
 #else
        doWarning(
@@ -211,9 +211,8 @@ void doError(docstring const & title0, docstring const & message, bool backtrace
               << toPlainText(message) << endl;
 
        QString details;
-       if (backtrace) {
-               details = QString::fromLocal8Bit(to_local8bit(printCallStack()).c_str());
-       }
+       if (backtrace)
+               details = toqstr(printCallStack());
 
        if (!use_gui)
                return;
@@ -247,7 +246,7 @@ void doError(docstring const & title0, docstring const & message, bool backtrace
 void error(docstring const & title0, docstring const & message, bool backtrace)
 {
 #ifdef EXPORT_in_THREAD
-       InGuiThread<void>().call(&doError, 
+       InGuiThread<void>().call(&doError,
 #else
        doError(
 #endif