Small code improvements.
Fixed bug with it - the server didn't send message FileListData when the requested folder is unavailable for any reasons.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@574 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/FTDialog.cxx b/vncviewer/FTDialog.cxx
index 409d3b1..5f71f7d 100644
--- a/vncviewer/FTDialog.cxx
+++ b/vncviewer/FTDialog.cxx
@@ -403,9 +403,12 @@
   m_bLocalBrowsing = false;
 
   m_pBrowseDlg = new FTBrowseDlg(this);
-  m_pBrowseDlg->create();
-
-  m_pFileTransfer->requestFileList("", FT_FLR_DEST_BROWSE, true);
+  if (m_pBrowseDlg->create()) {
+    m_pFileTransfer->requestFileList("", FT_FLR_DEST_BROWSE, true);
+  } else {
+    delete m_pBrowseDlg;
+    m_pBrowseDlg = NULL;
+  }
 }
 
 void 
@@ -439,7 +442,7 @@
 void
 FTDialog::showRemoteLVItems()
 {
-  m_pFileTransfer->requestFileList(m_szRemotePathTmp, FT_FLR_DEST_MAIN, 0);
+  m_pFileTransfer->requestFileList(m_szRemotePathTmp, FT_FLR_DEST_MAIN, false);
 }
 
 void 
@@ -473,6 +476,8 @@
 FTDialog::reqFolderUnavailable()
 {
   strcpy(m_szRemotePathTmp, m_szRemotePath);
+  SetWindowText(m_hwndRemotePath, m_szRemotePath);
+  UpdateWindow(m_hwndFTDialog);
 }
 
 int