diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index d8bc9c3d..9b0bbe4c 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -280,7 +280,7 @@ void PreferencesDialog::Save() // In Mac OS the full path of aplication binary is: // /myApp.app/Contents/MacOS/myApp QStringList args; - args << (this->applicationDirPath() + "/../../../SleepyHead.app"); + args << (QApplication::instance()->applicationDirPath() + "/../../../SleepyHead.app"); proc.startDetached("open", args); #else //#ifdef Q_OS_WIN