NetworkManager r3760 - trunk/test
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3760 - trunk/test
- Date: Fri, 20 Jun 2008 15:08:09 +0000 (UTC)
Author: dcbw
Date: Fri Jun 20 15:08:09 2008
New Revision: 3760
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3760&view=rev
Log:
Fix duplicate Default printouts
Modified:
trunk/test/nm-tool.c
Modified: trunk/test/nm-tool.c
==============================================================================
--- trunk/test/nm-tool.c (original)
+++ trunk/test/nm-tool.c Fri Jun 20 15:08:09 2008
@@ -206,6 +206,7 @@
const GArray *array;
const GPtrArray *connections;
int j;
+ gboolean is_default = FALSE;
state = nm_device_get_state (device);
@@ -237,11 +238,14 @@
candidate_dev = g_ptr_array_index (devices, 0);
if ((candidate_dev == device) && nm_active_connection_get_default(candidate))
- print_string ("Default", "yes");
- else
- print_string ("Default", "no");
+ is_default = TRUE;
}
+ if (is_default)
+ print_string ("Default", "yes");
+ else
+ print_string ("Default", "no");
+
tmp = NULL;
if (NM_IS_DEVICE_ETHERNET (device))
tmp = g_strdup (nm_device_ethernet_get_hw_address (NM_DEVICE_ETHERNET (device)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]