[gnome-commander] Fixed problem #621756 (custom port for ftp is not saved)



commit 23f4db60d4df30b902984e2e2998361b0755e266
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Sep 14 22:47:52 2011 +0200

    Fixed problem #621756 (custom port for ftp is not saved)

 NEWS                        |    1 +
 doc/C/gnome-commander.xml   |    3 +++
 src/gnome-cmd-con-dialog.cc |   10 +++++-----
 3 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/NEWS b/NEWS
index 5b7c1f6..5c3016c 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ gnome-commander 1.4
 Bug fixes:
  * Fixed problem #377463 (mkdir dialog loses focus)
  * Fixed problem #617140 (GNOME Goal: Use accessor functions instead direct access)
+ * Fixed problem #621756 (custom port for ftp is not saved)
  * Fixed problems #632064, #632208, #633107, #633167, #633331, #634972, #637873, #638059 (bugs in gnome-commander-help.master.po)
  * Fixed problem #657780 (bugs in nl.po)
  * Fixed Ubuntu problem #117226 (bookmarks unification)
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index f6b82a1..44062e7 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -7549,6 +7549,9 @@
                             <para>Fixed problem #617140 (GNOME Goal: Use accessor functions instead direct access)</para>
                         </listitem>
                         <listitem>
+                            <para>Fixed problem #621756 (custom port for ftp is not saved)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problems #632064, #632208, #633107, #633167, #633331, #634972, #637873, #638059 (bugs in gnome-commander-help.master.po)</para>
                         </listitem>
                         <listitem>
diff --git a/src/gnome-cmd-con-dialog.cc b/src/gnome-cmd-con-dialog.cc
index c754557..cf564a7 100644
--- a/src/gnome-cmd-con-dialog.cc
+++ b/src/gnome-cmd-con-dialog.cc
@@ -442,11 +442,11 @@ static void port_insert_text (GtkEditable *editable, const gchar *new_text, gint
     if (new_text_length < 0)
         new_text_length = strlen (new_text);
 
-    if (new_text_length != 1 || !g_ascii_isdigit (new_text[0]))
-    {
-        gdk_display_beep (gtk_widget_get_display (GTK_WIDGET (editable)));
-        g_signal_stop_emission_by_name (editable, "insert-text");
-    }
+    if (new_text_length!=1 || g_ascii_isdigit (new_text[0]))
+        return;
+
+    gdk_display_beep (gtk_widget_get_display (GTK_WIDGET (editable)));
+    g_signal_stop_emission_by_name (editable, "insert-text");
 }
 
 



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