diff options
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 9ae681f0..49712b74 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -792,7 +792,6 @@ void MainUI::RemoveFiles(QStringList list){ } void MainUI::CloseBrowser(QString ID){ - if(DWLIST.length()<2){ return; } //cannot close the last browser //Find the tab associated with this browser first for(int i=0; i<tabBar->count(); i++){ if(tabBar->tabWhatsThis(i)==ID){ @@ -807,6 +806,10 @@ void MainUI::CloseBrowser(QString ID){ break; } } + //If the last browser was just closed, create a new one + if(DWLIST.isEmpty()){ + OpenDirs(QStringList() << QDir::homePath()); + } } // ====================== |