aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/FTDialog.cxx
diff options
context:
space:
mode:
authorDennis Syrovatsky <dennis@tightvnc.com>2005-12-13 04:33:07 +0000
committerDennis Syrovatsky <dennis@tightvnc.com>2005-12-13 04:33:07 +0000
commit3f5ccbdfb23959f274c4f620dcc9cea95f7b9ab1 (patch)
tree036e97cc30b81501d409dabab3e4a0c95fdc45d4 /vncviewer/FTDialog.cxx
parentc14a07aa0f0fd8af5f0b7a643c972ae2682f0245 (diff)
downloadtigervnc-3f5ccbdfb23959f274c4f620dcc9cea95f7b9ab1.tar.gz
tigervnc-3f5ccbdfb23959f274c4f620dcc9cea95f7b9ab1.zip
Added code for download operation
to the FileTransfer::CheckDownloadQueue() method. Code improvements. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@438 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/FTDialog.cxx')
-rw-r--r--vncviewer/FTDialog.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/vncviewer/FTDialog.cxx b/vncviewer/FTDialog.cxx
index 5d691088..8e18d033 100644
--- a/vncviewer/FTDialog.cxx
+++ b/vncviewer/FTDialog.cxx
@@ -406,7 +406,6 @@ void
FTDialog::onUpload()
{
FileInfo fi;
- TransferQueue tq;
if (m_pLocalLV->getSelectedItems(&fi) > 0) {
m_pFileTransfer->addTransferQueue(m_szLocalPath, m_szRemotePath, &fi, FT_ATTR_COPY_UPLOAD);
}
@@ -415,8 +414,10 @@ FTDialog::onUpload()
void
FTDialog::onDownload()
{
- MessageBox(NULL, "onDownload", "FTDialog", MB_OK);
-
+ FileInfo fi;
+ if (m_pRemoteLV->getSelectedItems(&fi) > 0) {
+ m_pFileTransfer->addTransferQueue(m_szLocalPath, m_szRemotePath, &fi, FT_ATTR_COPY_DOWNLOAD);
+ }
}
void