walletManager: coding conventions

Signed-off-by: Jaquee <jaquee.monero@gmail.com>
This commit is contained in:
Jaquee
2016-11-27 00:16:09 +01:00
parent 0ae3d67750
commit 01549a3040
5 changed files with 24 additions and 27 deletions

View File

@@ -108,10 +108,8 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("translationManager", TranslationManager::instance());
engine.addImageProvider(QLatin1String("qrcode"), new QRCodeImageProvider());
engine.rootContext()->setContextProperty("daemonManager", DaemonManager::instance(QCoreApplication::arguments()));
DaemonManager * daemonManager = DaemonManager::instance(QCoreApplication::arguments());
const QStringList arguments = QCoreApplication::arguments();
DaemonManager * daemonManager = DaemonManager::instance(&arguments);
QObject::connect(&app, SIGNAL(aboutToQuit()), daemonManager, SLOT(closing()));
engine.rootContext()->setContextProperty("daemonManager", daemonManager);