aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/guiutils.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2024-12-11 11:46:34 +0100
committerhjk <[email protected]>2025-01-06 09:20:58 +0000
commitbcdf7d71b6e23c17f3a9963264c6025b8747fa93 (patch)
tree9e9d958e742cfeb7a5326e57bbfed85a116c4beb /src/libs/utils/guiutils.cpp
parent0c5c42a6d68a3a77b5761204298926a18407cc26 (diff)
Utils: Remove parent argument from FileUtils dialogs
Some were using ICore::dialogParent() directly and the 'nullptr' users were using that implicitly, but quite a few actually effectively changed now from some local widget to (implicit) ICore::dialogParent(). Change-Id: Ibb2767b1289221dd26757361235ee88df4a1695e Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/utils/guiutils.cpp')
-rw-r--r--src/libs/utils/guiutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/guiutils.cpp b/src/libs/utils/guiutils.cpp
index d7d9cb5f84f..03ec8bfd889 100644
--- a/src/libs/utils/guiutils.cpp
+++ b/src/libs/utils/guiutils.cpp
@@ -53,9 +53,9 @@ void setDialogParentGetter(QWidget *(*getter)())
s_dialogParentGetter = getter;
}
-QWidget *dialogParent(QWidget *parent)
+QWidget *dialogParent()
{
- return parent ? parent : s_dialogParentGetter ? s_dialogParentGetter() : nullptr;
+ return s_dialogParentGetter ? s_dialogParentGetter() : nullptr;
}
} // namespace Utils