Replace static use of qApp with QCoreApplication

This commit is contained in:
Ryan Huffman 2017-06-02 13:51:39 -07:00
parent de2f8bd944
commit a5296d50fc

View file

@ -73,7 +73,7 @@ void runLocalSandbox(QString contentPath, bool autoShutdown, bool noUpdater) {
}
if (autoShutdown) {
auto pid = qApp->applicationPid();
auto pid = QCoreApplication::applicationPid();
args << "--shutdownWith" << QString::number(pid);
}