Commit a8e6cc5d authored by Laurent Montel's avatar Laurent Montel 😁

Fix enable/disable

parent 31164ab1
......@@ -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"));
......
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