-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 8b98898..e770304 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -198,14 +198,16 @@ void AdvancedFm::doDelete() { } else { - if(doMsg) { - switch ( QMessageBox::warning(this,tr("Delete"), - tr("<p>Really delete %1?</p>").arg( myFile ), - tr("Yes"), tr("No"), 0, 0, 1) ) { - case 1: - return; - break; - default: - return; - break; - }; - } + if(doMsg) { + switch ( QMessageBox::warning(this,tr("Delete"), + tr("<p>Really delete %1?</p>").arg( myFile ), + tr("Yes"), tr("No"), 0, 0, 1) ) { + case 0; + break; + case 1: + return; + break; + default: + return; + break; + }; + } @@ -324,2 +326,4 @@ void AdvancedFm::copy() { tr("Yes"),tr("No"),0,0,1)) { + case 0; + break; case 1: @@ -432,3 +436,2 @@ void AdvancedFm::copySameDir() { case 0: - f.remove(); |