restart feature now also uses cmdline args
This commit is contained in:
parent
3318b96c16
commit
45381aad3a
|
@ -602,7 +602,8 @@ void Application::onAboutToQuit() {
|
||||||
finish();
|
finish();
|
||||||
qDebugNN << LOGSEC_CORE << "Killing local peer connection to allow another instance to start.";
|
qDebugNN << LOGSEC_CORE << "Killing local peer connection to allow another instance to start.";
|
||||||
|
|
||||||
if (QProcess::startDetached(QDir::toNativeSeparators(applicationFilePath()), {})) {
|
if (QProcess::startDetached(QDir::toNativeSeparators(applicationFilePath()),
|
||||||
|
arguments())) {
|
||||||
qDebugNN << LOGSEC_CORE << "New application instance was started.";
|
qDebugNN << LOGSEC_CORE << "New application instance was started.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue