forked from qt-creator/qt-creator
Utils: Pass dialog parent to Utils::* file dialog
Amends 3edc5673b5.
Turns out quite a few potential uses have other parents than
ICore::dialogParent().
Use a nullptr parent to mean ICore::dialogParent() to keep the
caller side simple.
Change-Id: Icfe1daafd710ae273d286679e0c8e2a3a27da552
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -566,13 +566,13 @@ void DiffEditorPluginPrivate::diffOpenFiles()
|
||||
|
||||
void DiffEditorPluginPrivate::diffExternalFiles()
|
||||
{
|
||||
const FilePath filePath1 = FileUtils::getOpenFilePath(tr("Select First File for Diff"));
|
||||
const FilePath filePath1 = FileUtils::getOpenFilePath(nullptr, tr("Select First File for Diff"));
|
||||
if (filePath1.isEmpty())
|
||||
return;
|
||||
if (EditorManager::skipOpeningBigTextFile(filePath1))
|
||||
return;
|
||||
|
||||
const FilePath filePath2 = FileUtils::getOpenFilePath(tr("Select Second File for Diff"));
|
||||
const FilePath filePath2 = FileUtils::getOpenFilePath(nullptr, tr("Select Second File for Diff"));
|
||||
if (filePath2.isEmpty())
|
||||
return;
|
||||
if (EditorManager::skipOpeningBigTextFile(filePath2))
|
||||
|
||||
Reference in New Issue
Block a user