getOpenFileName fix for Android

This commit is contained in:
pokamest 2023-04-05 01:43:42 +01:00
parent 15c33014e7
commit 7e717754a3
4 changed files with 29 additions and 4 deletions

View file

@ -167,7 +167,7 @@ void StartPageLogic::onPushButtonImport()
void StartPageLogic::onPushButtonImportOpenFile()
{
QString fileName = QFileDialog::getOpenFileName(Q_NULLPTR, tr("Open config file"),
QString fileName = Utils::getOpenFileName(Q_NULLPTR, tr("Open config file"),
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), "*.vpn *.ovpn *.conf");
if (fileName.isEmpty()) return;