[gnome-commander] Fix for broken samba browsing



commit 1dd9083d2d79fde6d370285b911baeb3ece03b22
Author: phan <phanyx o2 pl>
Date:   Wed Sep 8 19:35:48 2010 +0200

    Fix for broken samba browsing
    
    Fix typo in get_file_info_callback(), which
    was overwriting the con->state=CON_STATE_OPEN;
    with con->state=CON_STATE_CLOSED;

 src/gnome-cmd-con-smb.cc |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-con-smb.cc b/src/gnome-cmd-con-smb.cc
index acc1b5e..4d9f1ea 100644
--- a/src/gnome-cmd-con-smb.cc
+++ b/src/gnome-cmd-con-smb.cc
@@ -67,12 +67,13 @@ get_file_info_callback (GnomeVFSAsyncHandle *handle,
         }
     }
     else
+    {
         if (con->state == CON_STATE_CANCELLING)
             DEBUG('m', "The open operation was cancelled, doing nothing\n");
-    else
-        DEBUG('m', "Strange ConState %d\n", con->state);
-
-    con->state = CON_STATE_CLOSED;
+        else
+            DEBUG('m', "Strange ConState %d\n", con->state);
+        con->state = CON_STATE_CLOSED;
+    }
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]