From 32a8dd18d42910bfecec36cca3d6ef5063282eb4 Mon Sep 17 00:00:00 2001 From: mrjt Date: Thu, 22 Jul 2010 14:08:27 +0000 Subject: [PATCH] TabBar: Minor close behaviour change git-svn-id: svn://ultimatepp.org/upp/trunk@2563 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/TabBar/TabBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazaar/TabBar/TabBar.cpp b/bazaar/TabBar/TabBar.cpp index c378311e0..d9f1b0153 100644 --- a/bazaar/TabBar/TabBar.cpp +++ b/bazaar/TabBar/TabBar.cpp @@ -374,10 +374,10 @@ void TabBar::ContextMenu(Bar& bar) bar.Separator(); } bool sep = true; - if (highlight >= 0) { + if (GetCursor() >= 0) { bar.Separator(); sep = false; - bar.Add(t_("Close others"), THISBACK1(CloseAll, highlight)); + bar.Add(t_("Close others"), THISBACK1(CloseAll, GetCursor())); } if (mintabcount <= 0) { if (sep) bar.Separator();