Added code for managing remote file list.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@399 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/FTDialog.cxx b/vncviewer/FTDialog.cxx
index 67d2f64..423a1c8 100644
--- a/vncviewer/FTDialog.cxx
+++ b/vncviewer/FTDialog.cxx
@@ -227,6 +227,12 @@
void
FTDialog::onRemoteItemActivate(LPNMITEMACTIVATE lpnmia)
{
+ if (strlen(m_szRemotePath) == 0) {
+ strcpy(m_szRemotePathTmp, m_pRemoteLV->getActivateItemName(lpnmia));
+ } else {
+ sprintf(m_szRemotePathTmp, "%s\\%s", m_szRemotePath, m_pRemoteLV->getActivateItemName(lpnmia));
+ }
+ showRemoteLVItems();
}
void
@@ -239,7 +245,8 @@
void
FTDialog::onRemoteReload()
{
-
+ strcpy(m_szRemotePathTmp, m_szRemotePath);
+ showRemoteLVItems();
}
void
@@ -283,6 +290,9 @@
void
FTDialog::onRemoteOneUpFolder()
{
+ strcpy(m_szRemotePathTmp, m_szRemotePath);
+ makeOneUpFolder(m_szRemotePathTmp);
+ showRemoteLVItems();
}
void