summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/loggingviewer.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-07-22 13:27:19 +0200
committerhjk <hjk@qt.io>2022-07-22 14:11:46 +0000
commitaed29ad8c3eb3e6c8bee19d6cd8dbccc46ac4f09 (patch)
tree40744e87dfd33084fe27b710e0e8b01af0f70b29 /src/plugins/coreplugin/loggingviewer.cpp
parentf794bb0acf2a37078013fe2b25403ea68335f155 (diff)
downloadqt-creator-aed29ad8c3eb3e6c8bee19d6cd8dbccc46ac4f09.tar.gz
Core: Remove #include <QMainWindow> from icore.h
Adapt users; also use dialogParent() instead of mainWindow() were appropriate. Change-Id: Ib60b118f05c986a70657446c5b2937074243bb5c Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/loggingviewer.cpp')
-rw-r--r--src/plugins/coreplugin/loggingviewer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/loggingviewer.cpp b/src/plugins/coreplugin/loggingviewer.cpp
index 2ecab8d774..8bd5a3dbd7 100644
--- a/src/plugins/coreplugin/loggingviewer.cpp
+++ b/src/plugins/coreplugin/loggingviewer.cpp
@@ -732,7 +732,7 @@ void LoggingViewManagerWidget::setCategoryColor(const QString &category, const Q
void LoggingViewer::showLoggingView()
{
ActionManager::command(Constants::LOGGER)->action()->setEnabled(false);
- auto widget = new LoggingViewManagerWidget(ICore::mainWindow());
+ auto widget = new LoggingViewManagerWidget(ICore::dialogParent());
QObject::connect(widget, &QDialog::finished, widget, [widget] () {
ActionManager::command(Constants::LOGGER)->action()->setEnabled(true);
// explicitly disable manager again