forked from qt-creator/qt-creator
Use the new file dialog wrappers in some places
Change-Id: I326c883f2f76593e6fcb0f3e376d387273312982 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -239,12 +239,11 @@ QString FileExtractor::targetPath() const
|
||||
|
||||
void FileExtractor::browse()
|
||||
{
|
||||
const QString path = QFileDialog::getExistingDirectory(Core::ICore::dialogParent(),
|
||||
(tr("Choose Directory")),
|
||||
m_targetPath.toString());
|
||||
const Utils::FilePath path =
|
||||
Utils::FileUtils::getExistingDirectory(tr("Choose Directory"), m_targetPath);
|
||||
|
||||
if (!path.isEmpty())
|
||||
m_targetPath = Utils::FilePath::fromString(path);
|
||||
m_targetPath = path;
|
||||
|
||||
emit targetPathChanged();
|
||||
emit targetFolderExistsChanged();
|
||||
|
||||
Reference in New Issue
Block a user