Use the device model as the default title

This commit is contained in:
Pierre Pronchery 2015-08-23 04:25:05 +02:00
parent c2c83cbf8a
commit 99a2c0a9b8

View File

@ -563,7 +563,7 @@ static int _new_load(Simulator * simulator, char const * model)
&& p[0] != '\0' && *q == '\0')
simulator->height = l;
free(simulator->title);
if((p = config_get(config, NULL, "title")) != NULL)
if((p = config_get(config, NULL, "model")) != NULL)
simulator->title = strdup(p);
else
simulator->title = NULL;