From 764b6a9adf56756ab0dddec6b4f8fe0316475707 Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Tue, 26 Nov 2019 10:52:21 -0800 Subject: [PATCH] code review feedback --- tools/animedit/deploy.bat | 3 --- tools/animedit/main.cpp | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 tools/animedit/deploy.bat diff --git a/tools/animedit/deploy.bat b/tools/animedit/deploy.bat deleted file mode 100644 index e788d9d204..0000000000 --- a/tools/animedit/deploy.bat +++ /dev/null @@ -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 \ No newline at end of file diff --git a/tools/animedit/main.cpp b/tools/animedit/main.cpp index 4c7ea4de68..ae592b5c02 100644 --- a/tools/animedit/main.cpp +++ b/tools/animedit/main.cpp @@ -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);