1
0
Fork 0

fix issue 518: switch to CPU view after closing last reference view tab. (#854)

* fix issue 518: switch to CPU view after closing last reference view tab.

* formatted using hooks\AStyleWhore.exe
This commit is contained in:
bloodwrath 2016-07-16 10:59:57 -04:00 committed by Duncan Ogilvie
parent e2074e1e77
commit 135af2d543
1 changed files with 3 additions and 0 deletions

View File

@ -38,9 +38,12 @@ void ReferenceManager::newReferenceView(QString name)
void ReferenceManager::closeTab(int index)
{
removeTab(index);
if(count() <= 0)
emit showCpu();
}
void ReferenceManager::closeAllTabs()
{
clear();
emit showCpu();
}