From 78e9ed9ceacb0b09cbe4eda35261dc66b4d8222e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 8 Sep 2012 17:49:25 -0400 Subject: [PATCH] network: Say 'never' when the connection hasn't been used Nicer to say 'Last used: never', then to show nothing. --- panels/network/net-device-wifi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c index 4f45a4472..37e429fef 100644 --- a/panels/network/net-device-wifi.c +++ b/panels/network/net-device-wifi.c @@ -1649,8 +1649,10 @@ update_saved_last_used (NetDeviceWifi *device_wifi) if (s_con == NULL) goto out; timestamp = nm_setting_connection_get_timestamp (s_con); - if (timestamp == 0) + if (timestamp == 0) { + last_used = g_strdup (_("never")); goto out; + } /* calculate the amount of time that has elapsed */ now = g_date_time_new_now_utc ();