summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index f1b159c..6e9dc67 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -333,9 +333,12 @@ void OpieFtp::remoteDownload()
qApp->processEvents();
QString strItem = Remote_View->currentItem()->text(0);
// strItem=strItem.right(strItem.length()-1);
- QString localFile = currentDir.canonicalPath()+strItem;
+ QString localFile = currentDir.canonicalPath();
+ if(localFile.right(1).find("/",0,TRUE) == -1)
+ localFile += "/";
+ localFile += strItem;
// QString localFile = currentDir.canonicalPath()+"/"+strItem;
QString remoteFile= currentRemoteDir+strItem;
if (!FtpSize( remoteFile.latin1(), &fsz, FTPLIB_ASCII, conn))
fsz = 0;