aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-26 16:17:36 -0400
committerKen Moore <moorekou@gmail.com>2015-10-26 16:17:36 -0400
commit31a119ea305df365406f5130fcf068fd36a59506 (patch)
tree6d739f7149a3b9904c80e40225de74278cf6f922 /lumina-fm/MainUI.cpp
parentWhen locking the screen via the new start menu, don't use the "LaunchApp" fun... (diff)
downloadlumina-31a119ea305df365406f5130fcf068fd36a59506.tar.gz
lumina-31a119ea305df365406f5130fcf068fd36a59506.tar.bz2
lumina-31a119ea305df365406f5130fcf068fd36a59506.zip
Disable the option to close the "Browser" tab when using column-view.
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp4
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(){
bgstack15