[gnome-commander/gcmd-1-3] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander/gcmd-1-3] noop: code cleanup
- Date: Mon, 20 Jul 2009 15:56:04 +0000 (UTC)
commit 618f1fb6970d42c059fad16244602fa868fb49e3
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jul 20 17:51:29 2009 +0200
noop: code cleanup
src/gnome-cmd-file-selector.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index ac903fa..6864856 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -230,9 +230,9 @@ inline void GnomeCmdFileSelector::update_selected_files_label()
inline void set_connection (GnomeCmdFileSelector *fs, GnomeCmdCon *con, GnomeCmdDir *dir=NULL)
{
- gboolean con_change_needed = fs->get_connection()==con;
+ gboolean con_change_needed = fs->get_connection()!=con;
- if (!con_change_needed)
+ if (con_change_needed)
{
fs->file_list()->con = con;
fs->priv->dir_history = gnome_cmd_con_get_dir_history (con);
@@ -257,7 +257,7 @@ inline void set_connection (GnomeCmdFileSelector *fs, GnomeCmdCon *con, GnomeCmd
fs->set_directory(dir);
- if (!con_change_needed)
+ if (con_change_needed)
gnome_cmd_combo_select_data (GNOME_CMD_COMBO (fs->con_combo), con);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]