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.
|
||||
if (m_shouldRestart) {
|
||||
// TODO: Disable qtsinglepplication.
|
||||
// TODO: Start new instance.
|
||||
if (QProcess::startDetached(applicationFilePath())) {
|
||||
finish();
|
||||
qDebug("Killing local peer connection to allow another instances to start.");
|
||||
|
||||
if (QProcess::startDetached(applicationFilePath())) {
|
||||
qDebug("New application instance was started.");
|
||||
}
|
||||
else {
|
||||
qWarning("New application instance was not started successfully.");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user