-rw-r--r-- | core/obex/receiver.cpp | 12 |
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; | |||
9 | #include <qpe/qcopenvelope_qws.h> | 9 | #include <qpe/qcopenvelope_qws.h> |
10 | #include <qpe/filemanager.h> | ||
10 | using namespace Opie::Core; | 11 | using namespace Opie::Core; |
@@ -197,5 +198,10 @@ void OtherHandler::copy(const QString& src, const QString& file) { | |||
197 | owarn << "src " << src << ", dest " << file << "" << oendl; | 198 | owarn << "src " << src << ", dest " << file << "" << oendl; |
198 | QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). | 199 | FileManager *fm; |
199 | arg( Global::shellQuote( file ) ); | 200 | if(!fm->copyFile(src,file)) { |
200 | ::system( cmd.latin1() ); | 201 | owarn << "Copy failed" << oendl; |
202 | } | ||
203 | |||
204 | // QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). | ||
205 | // arg( Global::shellQuote( file ) ); | ||
206 | // ::system( cmd.latin1() ); | ||
201 | // done | 207 | // done |