Fixed maybe #61.
This commit is contained in:
parent
c831d4d615
commit
2d29dd9b5d
@ -162,10 +162,13 @@ void Application::onAboutToQuit() {
|
|||||||
|
|
||||||
// Now, we can check if application should just quit or restart itself.
|
// Now, we can check if application should just quit or restart itself.
|
||||||
if (m_shouldRestart) {
|
if (m_shouldRestart) {
|
||||||
// TODO: Disable qtsinglepplication.
|
finish();
|
||||||
// TODO: Start new instance.
|
qDebug("Killing local peer connection to allow another instances to start.");
|
||||||
|
|
||||||
if (QProcess::startDetached(applicationFilePath())) {
|
if (QProcess::startDetached(applicationFilePath())) {
|
||||||
finish();
|
qDebug("New application instance was started.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
qWarning("New application instance was not started successfully.");
|
qWarning("New application instance was not started successfully.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user