Fix opening url after save config (#784)
This commit is contained in:
parent
53746f2f66
commit
a0c06048cd
1 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,14 @@ void SystemController::saveFile(QString fileName, const QString &data)
|
||||||
return;
|
return;
|
||||||
#else
|
#else
|
||||||
QFileInfo fi(fileName);
|
QFileInfo fi(fileName);
|
||||||
QDesktopServices::openUrl(fi.absoluteDir().absolutePath());
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
const auto url = "file://" + fi.absoluteDir().absolutePath();
|
||||||
|
#else
|
||||||
|
const auto url = fi.absoluteDir().absolutePath();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
QDesktopServices::openUrl(url);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue