From f500c4c987b3295a743bbba3a24cf992c6fad6cf Mon Sep 17 00:00:00 2001 From: Lincoln Ramsay Date: Tue, 26 Mar 2013 10:43:16 +1000 Subject: [PATCH] Call refresh before checking the splitter sizes. If we don't do this, we miss the "current" size when an output pane has just been shown (it comes out as 0) and we resize it to the minimum size. Task-number: QTCREATORBUG-8877 Change-Id: I8b1cc19d116dde6edcf8770bb36d1598dfdce195 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/outputpane.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/coreplugin/outputpane.cpp b/src/plugins/coreplugin/outputpane.cpp index f282a6c5b97..e82d1b255af 100644 --- a/src/plugins/coreplugin/outputpane.cpp +++ b/src/plugins/coreplugin/outputpane.cpp @@ -144,6 +144,7 @@ void OutputPanePlaceHolder::ensureSizeHintAsMinimum() if (idx < 0) return; + d->m_splitter->refresh(); QList sizes = d->m_splitter->sizes(); Internal::OutputPaneManager *om = Internal::OutputPaneManager::instance(); int minimum = (d->m_splitter->orientation() == Qt::Vertical