mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00: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;
|
||||
#else
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user