-
Committer:
Tarmac
-
Author(s):
Albert Astals
-
Date:
2014-02-28 12:39:58 UTC
-
mfrom:
(100.1.1 qmenumodel)
-
Revision ID:
tarmac-20140228123958-3wczyei3fv1z29vi
Fix use of un-initialized memory
Since m_valid was not initialized calling setValid ends up in an uninitialized memory use in the if comparison. The other thing setValid does is emitting a signal, but this is the constructor, so you don't need the signal either, so basically just assign the variable directly
.
Approved by PS Jenkins bot, Lars Uebernickel.