diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-26 16:17:36 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-26 16:17:36 -0400 |
commit | 31a119ea305df365406f5130fcf068fd36a59506 (patch) | |
tree | 6d739f7149a3b9904c80e40225de74278cf6f922 | |
parent | When locking the screen via the new start menu, don't use the "LaunchApp" fun... (diff) | |
download | lumina-31a119ea305df365406f5130fcf068fd36a59506.tar.gz lumina-31a119ea305df365406f5130fcf068fd36a59506.tar.bz2 lumina-31a119ea305df365406f5130fcf068fd36a59506.zip |
Disable the option to close the "Browser" tab when using column-view.
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 832fb97e..e65a3f74 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -573,8 +573,9 @@ void MainUI::tabClosed(int tab){ if(tabBar->count()==1){ return; } //Can't close the only tab if(tab < 0){ tab = tabBar->currentIndex(); } QString info = tabBar->tabWhatsThis(tab); + if(info=="browser"){ return; } + //qDebug() << "Tab Closed:" << info; if(!info.startsWith("#")){ - if(DWLIST.length()<2){ return; } for(int i=0; i<DWLIST.length(); i++){ if(info == DWLIST[i]->id()){ DWLIST[i]->cleanup(); @@ -589,6 +590,7 @@ void MainUI::tabClosed(int tab){ qDebug() << "Closing tab:" << tab << tabBar->tabText(tab); tabBar->removeTab(tab); tabBar->setVisible( tabBar->count() > 1 ); + if(DWLIST.isEmpty()){ OpenDirs(QStringList() << QDir::homePath() ); } } void MainUI::prevTab(){ |