mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 16:44:52 +08:00
instancemanager: disable on macOS
We do not need to verify if an app instance already running on macOS, because it is done by default. Moreover, it causes a crash on the macOS app with enabled hardened runtime. Gitlab: #578 Change-Id: Ic8aa6a136d394372890ed4010f4a3c7ffa8e9233
This commit is contained in:
committed by
Kateryna Kostiuk
parent
3db33c4f89
commit
6b7c25054d
@@ -190,6 +190,23 @@ private:
|
||||
};
|
||||
};
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
InstanceManager::InstanceManager(MainApplication* mainApp)
|
||||
: QObject(mainApp)
|
||||
{}
|
||||
|
||||
InstanceManager::~InstanceManager() {}
|
||||
|
||||
bool
|
||||
InstanceManager::tryToRun(const QByteArray& startUri)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
InstanceManager::tryToKill()
|
||||
{}
|
||||
#else
|
||||
InstanceManager::InstanceManager(MainApplication* mainApp)
|
||||
: QObject(mainApp)
|
||||
{
|
||||
@@ -215,6 +232,7 @@ InstanceManager::tryToKill()
|
||||
{
|
||||
pimpl_->tryToKill();
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "moc_instancemanager.cpp"
|
||||
#include "instancemanager.moc"
|
||||
|
||||
Reference in New Issue
Block a user