[gnome-commander/gcmd-1-2-8] Fixed problem #621756 (custom port for ftp is not saved)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Fixed problem #621756 (custom port for ftp is not saved)
- Date: Mon, 3 Oct 2011 18:04:11 +0000 (UTC)
commit 40307caad5250ab7eec7b6366ad6aae9f4aab66c
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Oct 3 19:55:30 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 2d99a9e..4741dcc 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ gnome-commander 1.2.8.14
---------------
Bug fixes:
+ * Fixed problem #621756 (custom port for ftp is not saved)
===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 2f98db3..eda7aa0 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6108,6 +6108,9 @@
<para>Bug fixes:</para>
<para>
<itemizedlist>
+ <listitem>
+ <para>Fixed problem #621756 (custom port for ftp is not saved)</para>
+ </listitem>
</itemizedlist>
</para>
</entry>
diff --git a/src/gnome-cmd-con-dialog.cc b/src/gnome-cmd-con-dialog.cc
index 548163c..52a6205 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]