author | llornkcor <llornkcor> | 2004-10-06 08:10:14 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-10-06 08:10:14 (UTC) |
commit | 14c237a2d5c60314935d51d9beea0527e337a9d8 (patch) (unidiff) | |
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 | |||
@@ -157,6 +157,9 @@ void AdvancedFm::doDelete() { | |||
157 | case 1: | 157 | case 1: |
158 | return; | 158 | return; |
159 | break; | 159 | break; |
160 | default: | ||
161 | return; | ||
162 | break; | ||
160 | }; | 163 | }; |
161 | } | 164 | } |
162 | 165 | ||
@@ -188,6 +191,8 @@ void AdvancedFm::doDelete() { | |||
188 | case 1: | 191 | case 1: |
189 | // exit | 192 | // exit |
190 | break; | 193 | break; |
194 | default: | ||
195 | break; | ||
191 | }; | 196 | }; |
192 | 197 | ||
193 | } else { | 198 | } else { |
@@ -198,6 +203,9 @@ void AdvancedFm::doDelete() { | |||
198 | case 1: | 203 | case 1: |
199 | return; | 204 | return; |
200 | break; | 205 | break; |
206 | default: | ||
207 | return; | ||
208 | break; | ||
201 | }; | 209 | }; |
202 | } | 210 | } |
203 | 211 | ||
@@ -290,6 +298,9 @@ void AdvancedFm::copy() { | |||
290 | case 1: | 298 | case 1: |
291 | return; | 299 | return; |
292 | break; | 300 | break; |
301 | default: | ||
302 | return; | ||
303 | break; | ||
293 | }; | 304 | }; |
294 | } | 305 | } |
295 | 306 | ||
@@ -314,6 +325,9 @@ void AdvancedFm::copy() { | |||
314 | case 1: | 325 | case 1: |
315 | return; | 326 | return; |
316 | break; | 327 | break; |
328 | default: | ||
329 | return; | ||
330 | break; | ||
317 | }; | 331 | }; |
318 | } | 332 | } |
319 | f.remove(); | 333 | f.remove(); |
@@ -366,6 +380,9 @@ void AdvancedFm::copyAs() { | |||
366 | case 1: | 380 | case 1: |
367 | return; | 381 | return; |
368 | break; | 382 | break; |
383 | default: | ||
384 | return; | ||
385 | break; | ||
369 | }; | 386 | }; |
370 | } | 387 | } |
371 | if( !copyFile( curFile, destFile) ) { | 388 | if( !copyFile( curFile, destFile) ) { |
@@ -419,6 +436,9 @@ void AdvancedFm::copySameDir() { | |||
419 | case 1: | 436 | case 1: |
420 | return; | 437 | return; |
421 | break; | 438 | break; |
439 | default: | ||
440 | return; | ||
441 | break; | ||
422 | }; | 442 | }; |
423 | } | 443 | } |
424 | if(!copyFile( curFile,destFile) ) { | 444 | if(!copyFile( curFile,destFile) ) { |
@@ -473,6 +493,9 @@ void AdvancedFm::move() { | |||
473 | case 1: | 493 | case 1: |
474 | return; | 494 | return; |
475 | break; | 495 | break; |
496 | default: | ||
497 | return; | ||
498 | break; | ||
476 | }; | 499 | }; |
477 | if( !copyFile( curFile, destFile) ) { | 500 | if( !copyFile( curFile, destFile) ) { |
478 | QMessageBox::message(tr("Note"),tr("<p>Could not move %1</p>").arg(curFile)); | 501 | QMessageBox::message(tr("Note"),tr("<p>Could not move %1</p>").arg(curFile)); |