summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-22 13:31:47 +0100
committerLaurent Montel <[email protected]>2018-01-22 13:31:47 +0100
commita8e6cc5db24d1df4ee7dd8748002d9cb0c62ea4c (patch)
tree4a2a33a6f01cdf04a082096f6ba6fe436c13afd7
parent31164ab144db7b619ce56025ad1080c3b7030c27 (diff)
Fix enable/disable
-rw-r--r--src/ksieveui/editor/sieveeditortabwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ksieveui/editor/sieveeditortabwidget.cpp b/src/ksieveui/editor/sieveeditortabwidget.cpp
index 19731dd..3ea8e0e 100644
--- a/src/ksieveui/editor/sieveeditortabwidget.cpp
+++ b/src/ksieveui/editor/sieveeditortabwidget.cpp
@@ -60,7 +60,7 @@ void SieveEditorTabWidget::slotTabContextMenuRequest(const QPoint &pos)
closeTab->setIcon(QIcon::fromTheme(QStringLiteral("tab-close")));
QAction *allOther = menu.addAction(i18nc("@action:inmenu", "Close All Other Tabs"));
- allOther->setEnabled(countTab);
+ allOther->setEnabled((indexBar == 0) || (count() > 2));
allOther->setIcon(QIcon::fromTheme(QStringLiteral("tab-close-other")));
QAction *allTab = menu.addAction(i18nc("@action:inmenu", "Close All Tabs"));