author | llornkcor <llornkcor> | 2004-10-06 08:10:14 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-10-06 08:10:14 (UTC) |
commit | 14c237a2d5c60314935d51d9beea0527e337a9d8 (patch) (side-by-side diff) | |
tree | aaa74a61444febeec1db1760b79e5a07f47e8fd9 | |
parent | 637e5e26c5d30778234c03412f1bf44ed7b38a8e (diff) | |
download | opie-14c237a2d5c60314935d51d9beea0527e337a9d8.zip opie-14c237a2d5c60314935d51d9beea0527e337a9d8.tar.gz opie-14c237a2d5c60314935d51d9beea0527e337a9d8.tar.bz2 |
if user clicks dialog's X, dont go ahead and do the actions
-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 @@ -156,8 +156,11 @@ void AdvancedFm::doDelete() { break; case 1: return; break; + default: + return; + break; }; } QString myFile; @@ -187,8 +190,10 @@ void AdvancedFm::doDelete() { break; case 1: // exit break; + default: + break; }; } else { if(doMsg) { @@ -197,8 +202,11 @@ void AdvancedFm::doDelete() { tr("Yes"), tr("No"), 0, 0, 1) ) { case 1: return; break; + default: + return; + break; }; } QString cmd="rm "+f; @@ -289,8 +297,11 @@ void AdvancedFm::copy() { break; case 1: return; break; + default: + return; + break; }; } QString curFile, item, destFile; @@ -313,8 +324,11 @@ void AdvancedFm::copy() { tr("Yes"),tr("No"),0,0,1)) { case 1: return; break; + default: + return; + break; }; } f.remove(); } @@ -365,8 +379,11 @@ void AdvancedFm::copyAs() { 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)); @@ -418,8 +435,11 @@ void AdvancedFm::copySameDir() { 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)); @@ -472,8 +492,11 @@ void AdvancedFm::move() { 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; |