Commit e7b64d14 authored by Cristian Oneț's avatar Cristian Oneț
Browse files

Properly initialize a report object before reading it.

This way we make sure that it's valid even if the xml data is not.

BUG: 327663
(cherry picked from commit 442e44a1)
parent 49c06bbd
......@@ -170,6 +170,8 @@ MyMoneyReport::MyMoneyReport(const QDomElement& node) :
MyMoneyObject(node),
m_currentDateColumn(0)
{
// properly initialize the object before reading it
*this = MyMoneyReport();
if (!read(node))
clearId();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment