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 <david.schulz@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-06-25 17:47:39 -04:00
parent c49cfcd6c7
commit b7ba3122d6

View File

@@ -138,7 +138,7 @@ void OutlineWidgetStack::updateFilterMenu()
m_filterMenu->addAction(filterAction); m_filterMenu->addAction(filterAction);
} }
} }
m_filterButton->setEnabled(!m_filterMenu->actions().isEmpty()); m_filterButton->setVisible(!m_filterMenu->actions().isEmpty());
} }
void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor) void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor)