>From 481cb15ff1a96d53b991e630262bac9af009f488 Mon Sep 17 00:00:00 2001 From: phan Date: Mon, 16 Aug 2010 22:31:47 +0200 Subject: [PATCH] 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; + } } -- 1.7.0.4