summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index d34f330..4628170 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -548,34 +548,34 @@ bool AdvancedFm::copyFile( const QString & src, const QString & dest ) {
548 case EINVAL: msg = "Descriptor is not valid or locked. "; 548 case EINVAL: msg = "Descriptor is not valid or locked. ";
549 case ENOMEM: msg = "Insufficient memory to read from in_fd."; 549 case ENOMEM: msg = "Insufficient memory to read from in_fd.";
550 case EIO: msg = "Unspecified error while reading from in_fd."; 550 case EIO: msg = "Unspecified error while reading from in_fd.";
551 }; 551 };
552 success = false; 552 success = false;
553// owarn << msg << oendl; 553// owarn << msg << oendl;
554 } 554 }
555 } else { 555 } else {
556 success = false; 556 success = false;
557 } 557 }
558 } else { 558 } else {
559 success = false; 559 success = false;
560 } 560 }
561 srcFile.close(); 561 srcFile.close();
562 destFile.close(); 562 destFile.close();
563 // Set file permissions 563 // Set file permissions
564 if( stat( (const char *) src, &status ) == 0 ) { 564 if( stat( QFile::encodeName(src), &status ) == 0 ) {
565 chmod( (const char *) dest, status.st_mode ); 565 chmod( QFile::encodeName(dest), status.st_mode );
566 } 566 }
567 567
568 return success; 568 return success;
569} 569}
570 570
571void AdvancedFm::runCommand() { 571void AdvancedFm::runCommand() {
572 if( !CurrentView()->currentItem()) return; 572 if( !CurrentView()->currentItem()) return;
573 QDir *thisDir = CurrentDir(); 573 QDir *thisDir = CurrentDir();
574 574
575 QString curFile; 575 QString curFile;
576 curFile = thisDir->canonicalPath() +"/"+ CurrentView()->currentItem()->text(0); 576 curFile = thisDir->canonicalPath() +"/"+ CurrentView()->currentItem()->text(0);
577 577
578 InputDialog *fileDlg; 578 InputDialog *fileDlg;
579 fileDlg = new InputDialog(this,tr("Run Command"),TRUE, 0); 579 fileDlg = new InputDialog(this,tr("Run Command"),TRUE, 0);
580 fileDlg->setInputText(curFile); 580 fileDlg->setInputText(curFile);
581 fileDlg->exec(); 581 fileDlg->exec();