From 8d82c0d5a8297773f9d01f12e355d6d4014671e6 Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Wed, 7 Sep 2022 13:28:24 +0200 Subject: plugins/x2go/x2go_plugin.c: Update comment + remove misleading error message. --- plugins/x2go/x2go_plugin.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/x2go') diff --git a/plugins/x2go/x2go_plugin.c b/plugins/x2go/x2go_plugin.c index a5e34b6d0..c72b27192 100644 --- a/plugins/x2go/x2go_plugin.c +++ b/plugins/x2go/x2go_plugin.c @@ -3176,8 +3176,8 @@ static GError* rmplugin_x2go_int_setting_validator(gchar* key, gpointer value, gint int_value; err = str2int(&int_value, value, 10); if (err == STR2INT_INCONVERTIBLE) { - // Can't happen in theory since non-numerical characters are can't - // be entered but, let's be safe. + // non-numerical characters are can't be entered but, the user can + // input an empty string. g_set_error(&error, 1, 1, "%s", _("The input is not a valid integer!")); } else if (err == STR2INT_OVERFLOW || err == STR2INT_UNDERFLOW) { g_set_error(&error, 1, 1, _("Input must be a number between %i and %i."), @@ -3187,8 +3187,6 @@ static GError* rmplugin_x2go_int_setting_validator(gchar* key, gpointer value, } if (error) { - REMMINA_PLUGIN_CRITICAL("%s", _("Please check the RemminaProtocolSetting " - "array for possible errors.")); return error; } -- cgit v1.2.3