Don't show the info window if there's nothing to show.

This commit is contained in:
Alexander Shaduri
2014-05-05 10:37:24 +00:00
parent 836aa73430
commit e2dc39bff2
+2 -1
View File
@@ -299,7 +299,8 @@ std::string StorageDevice::parse_basic_data(bool do_set_properties, bool emit_si
}
}
set_parse_status(parse_status_info);
// A model field (and its aliases) is a good indication whether there was any data or not
set_parse_status(model_name_.defined() ? parse_status_info : parse_status_none);
if (emit_signal)
signal_changed.emit(this); // notify listeners