TabBar: Minor close behaviour change

git-svn-id: svn://ultimatepp.org/upp/trunk@2563 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
mrjt 2010-07-22 14:08:27 +00:00
parent 865226f977
commit 32a8dd18d4

View file

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