-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index a6b59c7..98d024d 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -483,24 +483,22 @@ void AdvancedFm::copy() { | |||
483 | curFile = currentDir.canonicalPath()+"/"+ item; | 483 | curFile = currentDir.canonicalPath()+"/"+ item; |
484 | qDebug("CurrentFile file is " + curFile); | 484 | qDebug("CurrentFile file is " + curFile); |
485 | 485 | ||
486 | QFile f(destFile); | 486 | QFile f(destFile); |
487 | if( f.exists()) { | 487 | if( f.exists()) { |
488 | if(doMsg) { | 488 | if(doMsg) { |
489 | switch ( QMessageBox::warning(this,tr("File Exists!"), | 489 | switch ( QMessageBox::warning(this,tr("File Exists!"), tr("%1 exists. Ok to overwrite?").arg( item ), tr("Yes"),tr("No"),0,0,1) ) { |
490 | item+tr("\nexists. Ok to overwrite?"), | ||
491 | tr("Yes"),tr("No"),0,0,1) ) { | ||
492 | case 1: | 490 | case 1: |
493 | return; | 491 | return; |
494 | break; | 492 | break; |
495 | }; | 493 | }; |
496 | } | 494 | } |
497 | f.remove(); | 495 | f.remove(); |
498 | } | 496 | } |
499 | if(!copyFile( curFile, destFile) ) { | 497 | if(!copyFile( curFile, destFile) ) { |
500 | QMessageBox::message("AdvancedFm","Could not copy\n"+curFile +"to\n"+destFile); | 498 | QMessageBox::message("AdvancedFm",tr( "Could not copy %1 to %2").arg( curFile ).arg( destFile ) ); |
501 | return; | 499 | return; |
502 | } | 500 | } |
503 | } | 501 | } |
504 | populateRemoteView(); | 502 | populateRemoteView(); |
505 | TabWidget->setCurrentTab(1); | 503 | TabWidget->setCurrentTab(1); |
506 | 504 | ||