From aed29ad8c3eb3e6c8bee19d6cd8dbccc46ac4f09 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 22 Jul 2022 13:27:19 +0200 Subject: Core: Remove #include from icore.h Adapt users; also use dialogParent() instead of mainWindow() were appropriate. Change-Id: Ib60b118f05c986a70657446c5b2937074243bb5c Reviewed-by: hjk Reviewed-by: Qt CI Bot Reviewed-by: Alessandro Portale --- src/plugins/coreplugin/loggingviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/coreplugin/loggingviewer.cpp') 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 -- cgit v1.2.1