Skip to content
Snippets Groups Projects
Commit 4a06565e authored by Albert  Babí Oller's avatar Albert Babí Oller Committed by Albert Babí Oller
Browse files

misc: initialize LRCInstance before rising connection error

- in order to start the daemon, LRCInstance has to be initializated before rising the error and displaying the popup.

Gitlab: #245

Change-Id: I4a6cd4f38f5c93f65bc157e7d2ffff7f16e6aff8
parent 11b62fd1
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,8 @@ MainApplication::init()
gnutls_global_init();
#endif
initLrc(results[opts::UPDATEURL].toString(), connectivityMonitor_);
#ifdef Q_OS_UNIX
GlobalInstances::setDBusErrorHandler(std::make_unique<Interfaces::DBusErrorHandler>());
auto dBusErrorHandlerQObject = dynamic_cast<QObject*>(&GlobalInstances::dBusErrorHandler());
......@@ -183,7 +185,6 @@ MainApplication::init()
}
#endif
initLrc(results[opts::UPDATEURL].toString(), connectivityMonitor_);
connect(connectivityMonitor_, &ConnectivityMonitor::connectivityChanged, [] {
LRCInstance::connectivityChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment