diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-03-06 12:29:48 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-03-06 12:29:48 -0500 |
| commit | e6eef867dcabd128eba9e8fca5de03a4244c4188 (patch) | |
| tree | d3db51ba59793e4a5577fcd989d327414af6a2ff /main.cpp | |
| parent | 4479026649320e733428e25683af9c07262c30ae (diff) | |
| parent | f45b0a7d25920f445d83d14415791dda48b8185c (diff) | |
| download | monzero-gui-e6eef867dcabd128eba9e8fca5de03a4244c4188.tar.gz monzero-gui-e6eef867dcabd128eba9e8fca5de03a4244c4188.tar.xz monzero-gui-e6eef867dcabd128eba9e8fca5de03a4244c4188.zip | |
Merge pull request #1150
a44d15a get_libwallet_api.sh: fix debug/release hardcoded path
8b97eed monero-wallet-gui.pro: use hardening flags
986275c get_libwallet_api.sh: fix comment referencing the wrong library
f45b0a7 main: do not crash if we can't load some stuff
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -255,7 +255,17 @@ int main(int argc, char *argv[]) // Load main window (context properties needs to be defined obove this line) engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); + if (engine.rootObjects().isEmpty()) + { + qCritical() << "Error: no root objects"; + return 1; + } QObject *rootObject = engine.rootObjects().first(); + if (!rootObject) + { + qCritical() << "Error: no root objects"; + return 1; + } #ifdef WITH_SCANNER QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML"); |
