Skip to content

Commit

Permalink
fixed crash when parsing <long> for not connected device
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitfrog committed May 3, 2015
1 parent 0c81221 commit 315507d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/inputmangler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ void InputMangler::readWindowSettings(QXmlStreamReader& conf, QStringList& ids)
if (conf.name() == "long")
{
QString id = conf.attributes().value("id").toString();
WindowSettings *w = wsettings[id];
w->def = parseOutputsLong(conf, inputsForIds->value(id), w->def);
used[id] = true;
if (ids.contains(id))
{
WindowSettings *w = wsettings[id];
w->def = parseOutputsLong(conf, inputsForIds->value(id), w->def);
used[id] = true;
}
}
if (conf.name() == "title")
{
Expand Down

0 comments on commit 315507d

Please sign in to comment.