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:
hjk
2021-08-11 09:01:53 +02:00
parent 7726267d07
commit 8885ef7e5a
10 changed files with 44 additions and 33 deletions

View File

@@ -885,7 +885,7 @@ void PerforcePluginPrivate::filelogCurrentFile()
void PerforcePluginPrivate::filelogFile()
{
const FilePath file = FileUtils::getOpenFilePath(tr("p4 filelog"));
const FilePath file = FileUtils::getOpenFilePath(nullptr, tr("p4 filelog"));
if (!file.isEmpty())
filelog(file.parentDir(), file.fileName());
}