fix: fixed a duplicated file selection

This commit is contained in:
Qv2ray-dev 2020-02-10 20:25:42 +08:00 committed by GitHub
parent 3e02539d4d
commit 6d58c3fed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -856,9 +856,7 @@ void PreferencesWindow::on_pacGoBtn_clicked()
break;
case 6:
QFileDialog d;
d.exec();
auto file = d.getOpenFileUrl(this, tr("Select GFWList in base64")).toString();
auto file = QFileDialog::getOpenFileName(this, tr("Select GFWList in base64"));
fileContent = StringFromFile(file);
break;
}