Commit 9b0a6e33 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Do not hide tab bar if there are less than 2 tabs

Hiding the tab bar breaks input focus navigation with Tab: If the widget
before the tab widget has focus and the tab bar is hidden, then nothing
happens when one presses Tab. Most likely a bug in QTabWidget which
sets the tab bar as focus proxy.

Moreover, not hiding the tab bar makes it more obvious that one can
create additional tabs.

GnuPG-bug-id: 5841
parent 99157fdd
......@@ -462,7 +462,6 @@ TabWidget::Private::Private(TabWidget *qq)
......@@ -561,12 +560,6 @@ void TabWidget::Private::enableDisablePageActions(const Actions &actions, const
actions.setVisible(Actions::Hierarchical, Kleo::Settings{}.cmsEnabled());
actions.setEnabled(Actions::ExpandAll, p && p->isHierarchicalView());
actions.setEnabled(Actions::CollapseAll, p && p->isHierarchicalView());
if (tabWidget.count() < 2) {
} else {
void TabWidget::Private::slotPageTitleChanged(const QString &)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment