summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-10-13 22:09:54 (UTC)
committer llornkcor <llornkcor>2004-10-13 22:09:54 (UTC)
commit9cc9ed1e746477c59b1fd3d572cdce052f0ccf85 (patch) (unidiff)
tree1ee7d27ca3292c4f1dbef01fcb22b4b24c0a6fa2
parent1f59ac9b59393b46a7ae5d4e1a46e1c1aaf05b23 (diff)
downloadopie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.zip
opie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.tar.gz
opie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.tar.bz2
add proper case handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp29
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() {
197 197
198 } else { 198 } else {
199 if(doMsg) { 199 if(doMsg) {
200 switch ( QMessageBox::warning(this,tr("Delete"), 200 switch ( QMessageBox::warning(this,tr("Delete"),
201 tr("<p>Really delete %1?</p>").arg( myFile ), 201 tr("<p>Really delete %1?</p>").arg( myFile ),
202 tr("Yes"), tr("No"), 0, 0, 1) ) { 202 tr("Yes"), tr("No"), 0, 0, 1) ) {
203 case 1: 203 case 0;
204 return; 204 break;
205 break; 205 case 1:
206 default: 206 return;
207 return; 207 break;
208 break; 208 default:
209 }; 209 return;
210 } 210 break;
211 };
212 }
211 213
212 QString cmd="rm "+f; 214 QString cmd="rm "+f;
@@ -323,4 +325,6 @@ void AdvancedFm::copy() {
323 tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item), 325 tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item),
324 tr("Yes"),tr("No"),0,0,1)) { 326 tr("Yes"),tr("No"),0,0,1)) {
327 case 0;
328 break;
325 case 1: 329 case 1:
326 return; 330 return;
@@ -431,5 +435,4 @@ void AdvancedFm::copySameDir() {
431 tr("Yes"),tr("No"),0,0,1) ) { 435 tr("Yes"),tr("No"),0,0,1) ) {
432 case 0: 436 case 0:
433
434 f.remove(); 437 f.remove();
435 break; 438 break;