From e8f15a98c611b0c6030e8210672b249b42107526 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 20 Mar 2002 23:58:17 +0000 Subject: fixed problem with remote download --- 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 @@ -334,7 +334,10 @@ void OpieFtp::remoteDownload() 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)) -- cgit v0.9.0.2