handle unicode scene loading error messages
parent
a6f17ff0a6
commit
e23e84b81f
|
@ -648,7 +648,7 @@ retry:
|
||||||
goto retry;
|
goto retry;
|
||||||
} catch (const std::exception &ex) {
|
} catch (const std::exception &ex) {
|
||||||
QMessageBox::critical(this, tr("Unable to update %1").arg(qFileName),
|
QMessageBox::critical(this, tr("Unable to update %1").arg(qFileName),
|
||||||
QString(ex.what()), QMessageBox::Ok);
|
QString::fromUtf8(ex.what()), QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName),
|
QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName),
|
||||||
|
@ -656,7 +656,7 @@ retry:
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName),
|
QMessageBox::critical(this, tr("Unable to load %1").arg(qFileName),
|
||||||
QString(loadingThread->getError().c_str()),
|
QString::fromUtf8(loadingThread->getError().c_str()),
|
||||||
QMessageBox::Ok);
|
QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue