Fix that opening advanced search could make output pane smaller

Height is set to 0 when the pane is hidden, so we have to check the
nonMaximizedSize instead (and only if the pane is not maximized already.

Task-number: QTCREATORBUG-15986
Change-Id: Ic2a08c300a7e311b59c4597d8043041f68a4c1ff
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Eike Ziller
2016-08-25 13:42:55 +02:00
parent 525317d5a4
commit fef76f0284

View File

@@ -177,7 +177,7 @@ void OutputPanePlaceHolder::ensureSizeHintAsMinimum()
Internal::OutputPaneManager *om = Internal::OutputPaneManager::instance();
int minimum = (d->m_splitter->orientation() == Qt::Vertical
? om->sizeHint().height() : om->sizeHint().width());
if (height() < minimum)
if (nonMaximizedSize() < minimum && !d->m_isMaximized)
setHeight(minimum);
}