summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-09-08 17:49:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-09-08 21:09:03 -0400
commit0ac11288d574e2787ff6f1c429f85f9be3690594 (patch)
tree6b16377bd0ec264e3e92c4ab6a5be49f01b893f5
parent2182df5c713001f62afde31bf316982833c7c756 (diff)
downloadgnome-control-center-0ac11288d574e2787ff6f1c429f85f9be3690594.tar.gz
network: Say 'never' when the connection hasn't been used
Nicer to say 'Last used: never', then to show nothing.
-rw-r--r--panels/network/net-device-wifi.c4
1 files changed, 3 insertions, 1 deletions
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 ();