mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-24 14:40:45 +00:00
Try QDesktopServices::openUrl as well if the other method fails
This commit is contained in:
parent
6f3b324bed
commit
ac9530027e
@ -286,6 +286,10 @@ void PreferencesDialog::Save()
|
|||||||
apppath=QApplication::instance()->applicationDirPath().section("/",0,-3);
|
apppath=QApplication::instance()->applicationDirPath().section("/",0,-3);
|
||||||
if (proc.startDetached("open",QStringList() << apppath)) {
|
if (proc.startDetached("open",QStringList() << apppath)) {
|
||||||
QApplication::instance()->exit();
|
QApplication::instance()->exit();
|
||||||
|
} else {
|
||||||
|
if (QDesktopServices::openUrl(apppath)) {
|
||||||
|
QApplication::instance()->exit();
|
||||||
|
} else QMessageBox::warning(this,"Gah!","If you can read this, two seperate application restart commands didn't work. Mark want's to know the following string:"+apppath,QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
/*qDebug() << "Hi Jimbo! :)";
|
/*qDebug() << "Hi Jimbo! :)";
|
||||||
qDebug() << "applicationFilePath:" << QApplication::instance()->applicationFilePath();
|
qDebug() << "applicationFilePath:" << QApplication::instance()->applicationFilePath();
|
||||||
|
Loading…
Reference in New Issue
Block a user