author | llornkcor <llornkcor> | 2002-11-15 14:24:58 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-15 14:24:58 (UTC) |
commit | 05f56fbbbe9ea5546f7503f4852fcab9c5b10a00 (patch) (side-by-side diff) | |
tree | bcc91dc6fd97e828f6dead6cb5811e84b2bb0154 | |
parent | b35750b8fe75e055e014e0dd294c714976f5715f (diff) | |
download | opie-05f56fbbbe9ea5546f7503f4852fcab9c5b10a00.zip opie-05f56fbbbe9ea5546f7503f4852fcab9c5b10a00.tar.gz opie-05f56fbbbe9ea5546f7503f4852fcab9c5b10a00.tar.bz2 |
dang it. small fix
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index bef701a..f89ad30 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -524,30 +524,31 @@ void AdvancedFm::copy() { } populateLocalView(); TabWidget->setCurrentTab(0); } } } void AdvancedFm::copyAs() { qApp->processEvents(); QStringList curFileList = getPath(); - QString curFile; + QString curFile, item; InputDialog *fileDlg; if (TabWidget->getCurrentTab() == 0) { qDebug("tab 1"); for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { QString destFile; + item=(*it); curFile = currentDir.canonicalPath()+"/"+(*it); fileDlg = new InputDialog( this,tr("Copy "+curFile+" As"), TRUE, 0); fileDlg->setInputText((const QString &) destFile ); fileDlg->exec(); if( fileDlg->result() == 1 ) { QString filename = fileDlg->LineEdit1->text(); destFile = currentRemoteDir.canonicalPath()+"/"+filename; QFile f(destFile); if( f.exists()) { @@ -568,24 +569,25 @@ void AdvancedFm::copyAs() { return; } } delete fileDlg; } populateRemoteView(); TabWidget->setCurrentTab(1); } else { for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { + item=(*it); curFile = currentRemoteDir.canonicalPath()+"/"+(*it); fileDlg = new InputDialog( this,tr("Copy "+curFile+" As"), TRUE, 0); QString destFile; fileDlg->setInputText((const QString &) destFile); fileDlg->exec(); if( fileDlg->result() == 1 ) { QString filename = fileDlg->LineEdit1->text(); destFile = currentDir.canonicalPath()+"/"+filename; QFile f( destFile); |