Prefer using QCoreApplication to using QApplication
Just checking if we can get rid of QtWidgets dependency on core, eventually
This commit is contained in:
parent
2c612479fe
commit
463aa0cbf9
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QStandardPaths>
|
||||
#include <QApplication>
|
||||
#include <QCoreApplication>
|
||||
#include <QHostInfo>
|
||||
|
||||
#include "core_debug.h"
|
||||
|
@ -94,7 +94,7 @@ KdeConnectConfig::KdeConnectConfig()
|
|||
if (!privKey.open(QIODevice::ReadWrite | QIODevice::Truncate)) {
|
||||
//TODO: Display this in a more visible way (notification?)
|
||||
qCCritical(KDECONNECT_CORE) << "Error: KDE Connect could not create private key file: " << keyPath;
|
||||
QApplication::exit(-1);
|
||||
QCoreApplication::exit(-1);
|
||||
}
|
||||
privKey.setPermissions(strict);
|
||||
|
||||
|
|
Loading…
Reference in a new issue