diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-08 15:38:08 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-08 15:38:08 -0400 |
commit | e1d3f6211acaa6d1e5f4366845496043de77d49d (patch) | |
tree | 79ec517c3d23bfbdf46e762ffb9d972378730518 /lumina-fm | |
parent | Change the application selection widget in lumina-open. Now it is a combobox ... (diff) | |
download | lumina-e1d3f6211acaa6d1e5f4366845496043de77d49d.tar.gz lumina-e1d3f6211acaa6d1e5f4366845496043de77d49d.tar.bz2 lumina-e1d3f6211acaa6d1e5f4366845496043de77d49d.zip |
Fix a bug in lumina-fm where launching it from the CLI with invalid arguments prevents the app from starting up with any dirs loaded.
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index daa172d1..3e8c7146 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -172,6 +172,10 @@ void MainUI::OpenDirs(QStringList dirs){ if(!invalid.isEmpty()){ QMessageBox::warning(this, tr("Invalid Directories"), tr("The following directories are invalid and could not be opened:")+"\n"+invalid.join(", ") ); } + //Double check that there is at least 1 dir loaded + //qDebug() << "OpenDirs:" << DWLIST.length() << dirs << invalid << tabBar->currentIndex(); + if(DWLIST.isEmpty()){ OpenDirs(QStringList()); } + } void MainUI::setupIcons(){ |