mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Fix opening url after save config (#784)
This commit is contained in:
committed by
GitHub
parent
53746f2f66
commit
a0c06048cd
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user