From b7ba3122d6eefdb31adfd9bf8d70ab4f175cb4cd Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 25 Jun 2014 17:47:39 -0400 Subject: [PATCH] TextEditor: Hide filter button in outline sidebar ...if there are no filter menu actions since a disabled button looks (almost?) the same as an enabled button, thus looks broken if the user tries to click on it. Change-Id: Idabc25d0f2b5534b77cc6c67cb160306345a586e Reviewed-by: David Schulz --- src/plugins/texteditor/outlinefactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/outlinefactory.cpp b/src/plugins/texteditor/outlinefactory.cpp index a1b53767826..3fc3d2b1dbe 100644 --- a/src/plugins/texteditor/outlinefactory.cpp +++ b/src/plugins/texteditor/outlinefactory.cpp @@ -138,7 +138,7 @@ void OutlineWidgetStack::updateFilterMenu() m_filterMenu->addAction(filterAction); } } - m_filterButton->setEnabled(!m_filterMenu->actions().isEmpty()); + m_filterButton->setVisible(!m_filterMenu->actions().isEmpty()); } void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor)