diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 16:41:31 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 16:41:31 +0000 |
commit | f01e0a37fa8f328b8694c9abc69ecc62fbc9690a (patch) | |
tree | 8a4b3c6bb642fb051b91ef4fedac932a56d21609 /chrome/browser/tabs | |
parent | 1de2056a46d9e3d081ac0e0bb8ea89c0fb646975 (diff) | |
download | chromium_src-f01e0a37fa8f328b8694c9abc69ecc62fbc9690a.zip chromium_src-f01e0a37fa8f328b8694c9abc69ecc62fbc9690a.tar.gz chromium_src-f01e0a37fa8f328b8694c9abc69ecc62fbc9690a.tar.bz2 |
Fixes close other tabs regression. It needed to check overall tab
count too.
BUG=35576
TEST=see bug
Review URL: http://codereview.chromium.org/629006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index 26c0d49..ca7ecd0 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -558,7 +558,7 @@ bool TabStripModel::IsContextMenuCommandEnabled( } case CommandCloseOtherTabs: // Close other doesn't effect mini-tabs. - return count() > IndexOfFirstNonMiniTab(); + return count() > 1 && count() > IndexOfFirstNonMiniTab(); case CommandCloseTabsToRight: // Close doesn't effect mini-tabs. return count() != IndexOfFirstNonMiniTab() && |