forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user