summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2004-10-13 22:09:54 (UTC)
committer llornkcor <llornkcor>2004-10-13 22:09:54 (UTC)
commit9cc9ed1e746477c59b1fd3d572cdce052f0ccf85 (patch) (side-by-side diff)
tree1ee7d27ca3292c4f1dbef01fcb22b4b24c0a6fa2 /noncore
parent1f59ac9b59393b46a7ae5d4e1a46e1c1aaf05b23 (diff)
downloadopie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.zip
opie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.tar.gz
opie-9cc9ed1e746477c59b1fd3d572cdce052f0ccf85.tar.bz2
add proper case handling
Diffstat (limited to 'noncore') (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
@@ -193,24 +193,26 @@ void AdvancedFm::doDelete() {
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;
- };
- }
+ 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;
QFile file(f);
QFileInfo fi(myFile);
if( fi.fileName().find("../",0,TRUE)==-1) {
// odebug << "remove link files "+myFile << oendl;
@@ -319,12 +321,14 @@ void AdvancedFm::copy() {
QFile f(destFile);
if( f.exists()) {
if(doMsg) {
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 0;
+ break;
case 1:
return;
break;
default:
return;
break;
@@ -427,13 +431,12 @@ void AdvancedFm::copySameDir() {
QFile f(destFile);
if( f.exists()) {
switch (QMessageBox::warning(this,tr("Delete"),
tr("<p> %1 already exists. Do you really want to delete it?</P>").arg(destFile),
tr("Yes"),tr("No"),0,0,1) ) {
case 0:
-
f.remove();
break;
case 1:
return;
break;
default: