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();