Send the outputpane the visibilityChanged(true) state when icon is toggled.

When an outputpane is toggled visible/invisible/visible by clicking on the icon
itself the plugin is not made aware of the visiblityChanged(true) state since
changePage does not detect that the index has changed because indeed it has not.

This change just explicitly adds the visibilityChanged call after the toggle so
that the plugin is made aware.

Change-Id: I6e782f52c9ac926c39acd91b5533009899a4ec2a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Adam Treat
2012-01-23 17:40:56 -05:00
committed by hjk
parent de5ed4a043
commit 3542db8ed2

View File

@@ -456,6 +456,7 @@ void OutputPaneManager::showPage(int idx, bool focus)
// make the page visible
OutputPanePlaceHolder::getCurrent()->setVisible(true);
ensurePageVisible(idx);
m_pageMap.value(idx)->visibilityChanged(true);
if (focus && out->canFocus())
out->setFocus();
}