Commit d9399b29 authored by Nick Poulden's avatar Nick Poulden
Browse files

Close all tabs bug fix

parent 334e4e18
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -202,7 +202,11 @@ Ext.define('Docs.view.Tabs', {
    },

    closeAllTabs: function() {
        if (this.inTabBar(this.activeTab)) {
            this.tabs = this.tabsInBar = [ this.activeTab ];
        } else {
            this.tabs = this.tabsInBar = [];
        }
        this.refresh();
        this.saveTabs();
    },