Commit 3fc2c1f4 authored by Łukasz Wojniłowicz's avatar Łukasz Wojniłowicz
Browse files

Register KMyMoney with process ID

BUG:350850
FIXED-IN:5.0.1
parent 10a45740
......@@ -1632,7 +1632,7 @@ KMyMoneyApp::KMyMoneyApp(QWidget* parent) :
new KmymoneyAdaptor(this);
QDBusConnection::sessionBus().registerObject("/KMymoney", this);
QDBusConnection::sessionBus().interface()->registerService(
"org.kde.kmymoney", QDBusConnectionInterface::DontQueueService);
"org.kde.kmymoney-" + QString::number(platformTools::processId()), QDBusConnectionInterface::DontQueueService);
#endif
// Register the main engine types used as meta-objects
qRegisterMetaType<MyMoneyMoney>("MyMoneyMoney");
......
......@@ -256,10 +256,7 @@ int runKMyMoney(QApplication& a, std::unique_ptr<QSplashScreen> splash, const QU
if (kmymoney->isImportableFile(file)) {
instantQuit = true;
kmymoney->webConnect()->loadFile(file);
}
} else if (KMessageBox::questionYesNo(0, i18n("Another instance of KMyMoney is already running. Do you want to quit?")) == KMessageBox::Yes) {
instantQuit = true;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment