aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-22 11:54:52 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-22 11:54:52 (GMT)
commita355d261a43c9094691ef2a7b824a538a624420d (patch)
tree4d3e09330111660a2a9d24c4adf755bf962e2f00
parent89058a37b5eed3e4d5dc7be429d631fe494f812a (diff)
right hiding of status bar
-rw-r--r--src/view/kateviewhelpers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/kateviewhelpers.cpp b/src/view/kateviewhelpers.cpp
index d59bdc4..48e0750 100644
--- a/src/view/kateviewhelpers.cpp
+++ b/src/view/kateviewhelpers.cpp
@@ -2382,11 +2382,14 @@ void KateViewBar::removePermanentBarWidget(KateViewBarWidget *barWidget)
{
Q_ASSERT(m_permanentBarWidget == barWidget);
+ const bool hideBar = m_stack->currentWidget() == m_permanentBarWidget;
+
m_permanentBarWidget->hide();
m_stack->removeWidget(m_permanentBarWidget);
m_permanentBarWidget = 0;
- if (!m_stack->isVisible()) {
+ if (hideBar) {
+ m_stack->hide();
setViewBarVisible(false);
}
}