[gnome-commander] GnomeCmdRemoteDialog: simplify code for do_connect_real(GnomeCmdConFtp *server)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdRemoteDialog: simplify code for do_connect_real(GnomeCmdConFtp *server)
- Date: Mon, 12 Sep 2011 16:04:07 +0000 (UTC)
commit 3aea78851f34b4cd5f93d838978d79cb7fbc3b52
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Sep 12 17:59:20 2011 +0200
GnomeCmdRemoteDialog: simplify code for do_connect_real(GnomeCmdConFtp *server)
src/gnome-cmd-remote-dialog.cc | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 3eea160..790206b 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -115,12 +115,11 @@ static gboolean do_connect_real (GnomeCmdConFtp *server)
{
GnomeCmdCon *con = GNOME_CMD_CON (server);
GnomeCmdFileSelector *fs = main_win->fs(ACTIVE);
- GnomeCmdFileList *fl = fs->file_list();
- if (fl->locked)
- fl = (GnomeCmdFileList *) gtk_bin_get_child (GTK_BIN (fs->new_tab())); // new_tab() retrieves scrolled_window, we must use gtk_bin_get_child() to get fl
+ if (fs->file_list()->locked)
+ fs->new_tab();
- fl->set_connection(con);
+ fs->set_connection(con);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]