Skip to content
Snippets Groups Projects
Commit 6b7c2505 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Kateryna Kostiuk
Browse files

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
parent 3db33c4f
No related branches found
No related tags found
No related merge requests found
......@@ -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"
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