-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 4802771..f25048a 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -154,12 +154,15 @@ void AdvancedFm::doDelete() { case 0: doMsg=false; break; case 1: return; break; + default: + return; + break; }; } QString myFile; for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { @@ -185,22 +188,27 @@ void AdvancedFm::doDelete() { populateView(); } break; case 1: // exit break; + default: + break; }; } 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; }; } QString cmd="rm "+f; QFile file(f); QFileInfo fi(myFile); @@ -287,12 +295,15 @@ void AdvancedFm::copy() { case 0: doMsg=false; break; case 1: return; break; + default: + return; + break; }; } QString curFile, item, destFile; for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { item=(*it); @@ -311,12 +322,15 @@ void AdvancedFm::copy() { switch ( QMessageBox::warning(this,tr("File Exists!"), tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item), tr("Yes"),tr("No"),0,0,1)) { case 1: return; break; + default: + return; + break; }; } f.remove(); } if( !copyFile( curFile, destFile) ) { @@ -363,12 +377,15 @@ void AdvancedFm::copyAs() { case 0: f.remove(); break; case 1: return; break; + default: + return; + break; }; } if( !copyFile( curFile, destFile) ) { QMessageBox::message("AdvancedFm",tr("<p>Could not copy %1 to %2</P>").arg(curFile).arg(destFile)); return; } @@ -416,12 +433,15 @@ void AdvancedFm::copySameDir() { f.remove(); break; case 1: return; break; + default: + return; + break; }; } if(!copyFile( curFile,destFile) ) { QMessageBox::message("AdvancedFm",tr("<P>Could not copy %1 to %2</P>").arg(curFile).arg(destFile)); return; } @@ -470,12 +490,15 @@ void AdvancedFm::move() { switch ( QMessageBox::warning(this,tr("File Exists!"), tr("<p>%1 already exists. Ok to overwrite?</P>").arg(destFile), tr("Yes"),tr("No"),0,0,1)) { case 1: return; break; + default: + return; + break; }; if( !copyFile( curFile, destFile) ) { QMessageBox::message(tr("Note"),tr("<p>Could not move %1</p>").arg(curFile)); return; } else QFile::remove(curFile); |