Fixed crash on add item via favorite button after application start.

Favorite buttons has short name labels.
closes #296
refs #293
This commit is contained in:
2017-04-04 21:57:36 +02:00
parent aa91acbe17
commit 4b3a2e1dd7
11 changed files with 40 additions and 18 deletions
+10
View File
@@ -28,6 +28,16 @@ void FavoritItem::setName(const QString &name)
m_name = name;
}
QString FavoritItem::shortName()
{
return m_shortName;
}
void FavoritItem::setShortName(const QString &shortName)
{
m_shortName = shortName;
}
QDecDouble FavoritItem::unitPrice()
{
return TO_DEC(m_unitPrice);