[gnome-commander] Store scheme in the connection when creating a new GnomeCmdCon object
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Store scheme in the connection when creating a new GnomeCmdCon object
- Date: Wed, 9 Feb 2022 20:27:29 +0000 (UTC)
commit b931bd81bd8b1f26b2e24d73f26f9214cd356d09
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Jan 23 23:12:04 2022 +0100
Store scheme in the connection when creating a new GnomeCmdCon object
src/gnome-cmd-con-remote.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-remote.cc b/src/gnome-cmd-con-remote.cc
index 99042744..b7679c6b 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -334,6 +334,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
GError *error = nullptr;
+ gchar *scheme = nullptr;
gchar *user = nullptr;
gchar *host = nullptr;
gint port = -1;
@@ -342,7 +343,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
g_uri_split_with_user (
uri_str.c_str(),
G_URI_FLAGS_HAS_PASSWORD,
- nullptr, //scheme
+ &scheme,
&user,
nullptr, //password
nullptr, //auth_params
@@ -364,6 +365,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
gnome_cmd_con_set_alias (con, alias);
gnome_cmd_con_set_uri (con, uri_str.c_str());
+ gnome_cmd_con_set_scheme(con, scheme);
gnome_cmd_con_set_user_name (con, user);
gnome_cmd_con_set_host_name (con, host);
gnome_cmd_con_set_port (con, port);
@@ -374,6 +376,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
con->method = gnome_cmd_con_get_scheme (uri_str.c_str());
g_free (path);
+ g_free (scheme);
g_free(host);
return gnomeCmdConRemote;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]