diff options
author | Dennis Syrovatsky <dennis@tightvnc.com> | 2005-12-13 04:33:07 +0000 |
---|---|---|
committer | Dennis Syrovatsky <dennis@tightvnc.com> | 2005-12-13 04:33:07 +0000 |
commit | 3f5ccbdfb23959f274c4f620dcc9cea95f7b9ab1 (patch) | |
tree | 036e97cc30b81501d409dabab3e4a0c95fdc45d4 /vncviewer/FTDialog.cxx | |
parent | c14a07aa0f0fd8af5f0b7a643c972ae2682f0245 (diff) | |
download | tigervnc-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.cxx | 7 |
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 |