[gnome-control-center/wifi-refinements: 12/20] network: Say 'never' when the connection hasn't been used



commit 0ac11288d574e2787ff6f1c429f85f9be3690594
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 8 17:49:25 2012 -0400

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 4f45a44..37e429f 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]