handle unicode scene loading error messages

metadata
Wenzel Jakob 2012-10-14 20:54:36 -07:00
parent a6f17ff0a6
commit e23e84b81f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}