From ffeecb62340fa1032274432648005ad2c79a5462 Mon Sep 17 00:00:00 2001 From: pazos Date: Wed, 25 Apr 2018 15:29:17 +0200 Subject: [PATCH] move monero stuff after app constructor + cmdline parser --- main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 3f656042..cb55ab29 100644 --- a/main.cpp +++ b/main.cpp @@ -93,17 +93,12 @@ int main(int argc, char *argv[]) // disable "QApplication: invalid style override passed" warning if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion"); - Monero::Utils::onStartup(); // // Enable high DPI scaling on windows & linux //#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600 // QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // qDebug() << "High DPI auto scaling - enabled"; //#endif - // Log settings - Monero::Wallet::init(argv[0], "monero-wallet-gui"); -// qInstallMessageHandler(messageHandler); - MainApp app(argc, argv); app.setApplicationName("monero-gui"); @@ -121,6 +116,12 @@ int main(int argc, char *argv[]) parser.addHelpOption(); parser.process(app); + Monero::Utils::onStartup(); + + // Log settings + Monero::Wallet::init(argv[0], "monero-wallet-gui"); +// qInstallMessageHandler(messageHandler); + qDebug() << "app startd"; // registering types for QML