forked from qt-creator/qt-creator
Android: Use FileUtils in AndroidDeployQtStep::createConfigWidget
Change-Id: Ib2ca0dbcdc811a6c130bf921845484b95039d076 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -510,11 +510,11 @@ QWidget *AndroidDeployQtStep::createConfigWidget()
|
||||
installCustomApkButton->setText(tr("Install an APK File"));
|
||||
|
||||
connect(installCustomApkButton, &QAbstractButton::clicked, this, [this, widget] {
|
||||
const QString packagePath
|
||||
= QFileDialog::getOpenFileName(widget,
|
||||
tr("Qt Android Installer"),
|
||||
QDir::homePath(),
|
||||
tr("Android package (*.apk)"));
|
||||
const FilePath packagePath
|
||||
= FileUtils::getOpenFilePath(widget,
|
||||
tr("Qt Android Installer"),
|
||||
FileUtils::homePath(),
|
||||
tr("Android package (*.apk)"));
|
||||
if (!packagePath.isEmpty())
|
||||
AndroidManager::installQASIPackage(target(), packagePath);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user