From e23e84b81fe2d1e0faa2b7176ba4e5f599e85fb5 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 14 Oct 2012 20:54:36 -0700 Subject: [PATCH] handle unicode scene loading error messages --- src/mtsgui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mtsgui/mainwindow.cpp b/src/mtsgui/mainwindow.cpp index 3ae175bf..81f21d16 100644 --- a/src/mtsgui/mainwindow.cpp +++ b/src/mtsgui/mainwindow.cpp @@ -648,7 +648,7 @@ retry: goto retry; } catch (const std::exception &ex) { QMessageBox::critical(this, tr("Unable to update %1").arg(qFileName), - QString(ex.what()), QMessageBox::Ok); + QString::fromUtf8(ex.what()), QMessageBox::Ok); } } else { QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName), @@ -656,7 +656,7 @@ retry: } } else { QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName), - QString(loadingThread->getError().c_str()), + QString::fromUtf8(loadingThread->getError().c_str()), QMessageBox::Ok); } }