From 8885ef7e5aa66bc1a4e9541c46d90a46bdeca1b3 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 11 Aug 2021 09:01:53 +0200 Subject: Utils: Pass dialog parent to Utils::* file dialog Amends 3edc5673b58e55. 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 --- src/plugins/vcsbase/vcsbaseplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp') diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 961b64caea..b058600d0b 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -644,7 +644,7 @@ void VcsBasePluginPrivate::createRepository() // Prompt for a directory that is not under version control yet QWidget *mw = ICore::dialogParent(); do { - directory = FileUtils::getExistingDirectory(tr("Choose Repository Directory"), directory); + directory = FileUtils::getExistingDirectory(nullptr, tr("Choose Repository Directory"), directory); if (directory.isEmpty()) return; const IVersionControl *managingControl = VcsManager::findVersionControlForDirectory(directory); -- cgit v1.2.1