mirror of https://github.com/xemu-project/xemu.git
ui: Drop has_inserted, has_node_name checks
This commit is contained in:
parent
11588895ab
commit
fcea27ed7f
|
@ -229,11 +229,8 @@ char *xemu_get_currently_loaded_disc_path(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->value->has_inserted) {
|
if (info->value->inserted && info->value->inserted->node_name) {
|
||||||
BlockDeviceInfo *inserted = info->value->inserted;
|
file = g_strdup(info->value->inserted->file);
|
||||||
if (inserted->has_node_name) {
|
|
||||||
file = g_strdup(inserted->file);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue