QmlDesigner: Use Core::ICore::dialogParent() for dialog

Change-Id: Ie06e8632ff091ee6cc14dacf242461ceca4eaf9c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2018-02-19 12:52:09 +01:00
parent d55271bc50
commit 436b8cdea1

View File

@@ -134,7 +134,10 @@ void FileResourcesModel::openFileDialog()
if (!QFileInfo::exists(path))
path = modelPath;
QString newFile = QFileDialog::getOpenFileName(Core::ICore::mainWindow(), tr("Open File"), path, m_filter);
QString newFile = QFileDialog::getOpenFileName(Core::ICore::dialogParent(),
tr("Open File"),
path,
m_filter);
if (!newFile.isEmpty()) {
setFileNameStr(newFile);