ProjectExplorer: Fix restoring the issues pane warning button state

The wrong button function was called.
This does not fully fix the linked problem for the default session,
because there is the additional issue of TaskView::loadSettings() not
getting called at all.

Task-number: QTCREATORBUG-19388
Change-Id: I64dcec9c6d07c8ac614c9a2ecd783e7eaa1a204c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2019-08-26 15:20:02 +02:00
parent 5e6c9947ad
commit ca7e6bd1b1

View File

@@ -427,7 +427,7 @@ void TaskWindow::loadSettings()
if (value.isValid()) { if (value.isValid()) {
bool includeWarnings = value.toBool(); bool includeWarnings = value.toBool();
d->m_filter->setFilterIncludesWarnings(includeWarnings); d->m_filter->setFilterIncludesWarnings(includeWarnings);
d->m_filterWarningsButton->setDown(d->m_filter->filterIncludesWarnings()); d->m_filterWarningsButton->setChecked(d->m_filter->filterIncludesWarnings());
} }
} }