-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 @@ -197,16 +197,18 @@ 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; + }; + } QString cmd="rm "+f; @@ -323,4 +325,6 @@ void AdvancedFm::copy() { tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item), tr("Yes"),tr("No"),0,0,1)) { + case 0; + break; case 1: return; @@ -431,5 +435,4 @@ void AdvancedFm::copySameDir() { tr("Yes"),tr("No"),0,0,1) ) { case 0: - f.remove(); break; |