From 2ac1591801cd7df9cb916bc6ad665ff019f0aee8 Mon Sep 17 00:00:00 2001 From: mrjt Date: Thu, 22 Jul 2010 14:14:47 +0000 Subject: [PATCH] TabBar: More minor changes. Sorry git-svn-id: svn://ultimatepp.org/upp/trunk@2564 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/TabBar/TabBar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazaar/TabBar/TabBar.cpp b/bazaar/TabBar/TabBar.cpp index d9f1b0153..eb0751c11 100644 --- a/bazaar/TabBar/TabBar.cpp +++ b/bazaar/TabBar/TabBar.cpp @@ -358,7 +358,7 @@ int TabBar::GetNextId() void TabBar::ContextMenu(Bar& bar) { - if (highlight >= 0) { + if (highlight >= 0 && crosses) { bar.Add(tabs.GetCount() > mintabcount, t_("Close"), THISBACK1(Close, highlight)); bar.Separator(); } @@ -374,12 +374,12 @@ void TabBar::ContextMenu(Bar& bar) bar.Separator(); } bool sep = true; - if (GetCursor() >= 0) { + if (GetCursor() >= 0 && crosses) { bar.Separator(); sep = false; bar.Add(t_("Close others"), THISBACK1(CloseAll, GetCursor())); } - if (mintabcount <= 0) { + if (mintabcount <= 0 && crosses) { if (sep) bar.Separator(); bar.Add(t_("Close all"), THISBACK1(CloseAll, -1)); }