Commit 8cd02686 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: Using :ICore::mainWindow() for dialogs



Since the current focus is on (native) QtQuickView window we have to
specify the Qt Creator main window.

Task-number: QTCREATORBUG-11322
Change-Id: I0e05efaa88b6177004730cd8c43010568cf64eac
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent f206d8ba
......@@ -29,6 +29,8 @@
#include "fileresourcesmodel.h"
#include <coreplugin/icore.h>
#include <model.h>
#include <QFileDialog>
......@@ -130,7 +132,7 @@ void FileResourcesModel::openFileDialog()
if (!QFileInfo(path).exists())
path = modelPath;
QString newFile = QFileDialog::getOpenFileName(0, tr("Open File"), path, m_filter);
QString newFile = QFileDialog::getOpenFileName(Core::ICore::mainWindow(), tr("Open File"), path, m_filter);
if (!newFile.isEmpty()) {
setFileNameStr(newFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment