Hi.

Currently, some application (sorry i don't know) wrote SysInfo in below.
  /iPod_Control/Device/SysInfo
And it seems that gtkpod expect xY000 like string.
But some times this leading 'x' doesn't set. Maybe it depend on libmodiledevice or another libraries?
Below is a patch for getting ModelNumStr old workaround.
Please check and include.

- Yasuhiro Matsumoto


diff --git a/src/itdb_device.c b/src/itdb_device.c
index 80995de..4f10675 100644
--- a/src/itdb_device.c
+++ b/src/itdb_device.c
@@ -2113,7 +2113,8 @@ get_ipod_info_from_model_number (const char *model_number)
     g_return_val_if_fail (model_number != NULL, NULL);
 
     model_table = get_model_table ();
-    if(isalpha(model_number[0])) {
+    /* Fix workarounds skipping leading 'x' */
+    if(model_number[0] == 'x' && model_number[1] != '\0') {
  model_number++;
     }
     return g_hash_table_lookup (model_table->model_number_hash, model_number);