summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/obex/receiver.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp
index 8885256..d4ae323 100644
--- a/core/obex/receiver.cpp
+++ b/core/obex/receiver.cpp
@@ -9,2 +9,3 @@ using namespace OpieObex;
#include <qpe/qcopenvelope_qws.h>
+#include <qpe/filemanager.h>
using namespace Opie::Core;
@@ -197,5 +198,10 @@ void OtherHandler::copy(const QString& src, const QString& file) {
owarn << "src " << src << ", dest " << file << "" << oendl;
- QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )).
- arg( Global::shellQuote( file ) );
- ::system( cmd.latin1() );
+ FileManager *fm;
+ if(!fm->copyFile(src,file)) {
+ owarn << "Copy failed" << oendl;
+ }
+
+// QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )).
+// arg( Global::shellQuote( file ) );
+// ::system( cmd.latin1() );
// done