[gnome-commander] Reduce complaining if no hostname is available for setting the tooltips
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Reduce complaining if no hostname is available for setting the tooltips
- Date: Tue, 28 Sep 2021 19:01:31 +0000 (UTC)
commit 9f3f77aaf6ab974b64031760065e7b63de06d8a2
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Sep 28 20:57:06 2021 +0200
Reduce complaining if no hostname is available for setting the tooltips
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 0af6ba84..b05b32ae 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -313,7 +313,10 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
void gnome_cmd_con_remote_set_tooltips (GnomeCmdConRemote *con, const gchar *host_name)
{
g_return_if_fail (con != nullptr);
- g_return_if_fail (host_name != nullptr);
+ if (!host_name)
+ {
+ return;
+ }
GNOME_CMD_CON (con)->open_tooltip = g_strdup_printf (_("Opens remote connection to %s"), host_name);
GNOME_CMD_CON (con)->close_tooltip = g_strdup_printf (_("Closes remote connection to %s"), host_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]