[PATCH] Don't show (null) in wizard

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

 



Hi:

I've noticed that the wizard will show (null) if the device name is not yet recognized when pairing.  This is a bit confusing to the user experience.  The attached patch makes the behavior a little bit better.

Regards

Mario Limonciello 
Dell | Linux Engineering 
Mario_Limonciello@xxxxxxxx 


diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.8/wizard/main.c bluez-gnome-1.8.new/wizard/main.c
--- bluez-gnome-1.8/wizard/main.c	2008-10-04 14:32:56.000000000 -0500
+++ bluez-gnome-1.8.new/wizard/main.c	2008-10-06 01:18:54.000000000 -0500
@@ -362,6 +362,8 @@
 		g_free(target_address);
 		target_address = address;
 
+		if (name == NULL)
+			name = "device";
 		g_free(target_name);
 		target_name = name;
 

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux