code review feedback

This commit is contained in:
Anthony J. Thibault 2019-11-26 10:52:21 -08:00
parent 320095f765
commit 764b6a9adf
2 changed files with 1 additions and 5 deletions

View file

@ -1,3 +0,0 @@
mkdir C:\Users\ajthy\Documents\animedit\bin
copy C:\Users\ajthy\Documents\build-animedit-Desktop_Qt_5_12_3_MSVC2015_64bit-Release\release\animedit.exe C:\Users\ajthy\Documents\animedit\bin
C:\Qt\5.12.3\msvc2015_64\bin\windeployqt.exe -qmldir C:\Users\ajthy\Documents\animedit\qml C:\Users\ajthy\Documents\animedit\bin\animedit.exe

View file

@ -26,9 +26,8 @@ int main(int argc, char *argv[])
const QUrl url(QStringLiteral("qrc:/qml/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, &app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl) {
// failure loading main.qml
QCoreApplication::exit(-1);
} else {
;
}
}, Qt::QueuedConnection);
engine.load(url);