diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-13 18:07:36 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-13 18:07:36 -0400 |
commit | 3d845a83ba09b4b55523118e88dd33f4f9741481 (patch) | |
tree | 32f162af985f2e0541055b4757cf092d4f3930e1 | |
parent | Add a couple more checks to the notepad plugin so that it does not update/cha... (diff) | |
download | lumina-3d845a83ba09b4b55523118e88dd33f4f9741481.tar.gz lumina-3d845a83ba09b4b55523118e88dd33f4f9741481.tar.bz2 lumina-3d845a83ba09b4b55523118e88dd33f4f9741481.zip |
Make sure the file removals are multi-selection aware in lumina-fm.
-rw-r--r-- | lumina-fm/MainUI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index df5c898a..56288a80 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -1287,17 +1287,17 @@ void MainUI::RemoveItem(){ if(!checkUserPerms()){ return; } //Get the selected items QStringList paths, names; - if(CItem.isEmpty()){ + //if(CItem.isEmpty()){ QFileInfoList sel = getSelectedItems(); for(int i=0; i<sel.length(); i++){ paths << sel[i].absoluteFilePath(); names << sel[i].fileName(); } if(sel.isEmpty()){ return; } //nothing selected - }else{ + /*}else{ paths << CItem; names << CItem.section("/",-1); - } + }*/ //Verify permanent removal of file/dir if(QMessageBox::Yes != QMessageBox::question(this, tr("Verify Removal"), tr("WARNING: This will permanently delete the file(s) from the system!")+"\n"+tr("Are you sure you want to continue?")+"\n\n"+names.join("\n"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) ){ return; //cancelled |