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:
@@ -26,7 +26,7 @@ void CommodityData::setName(const QString &name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
QString CommodityData::shortName() const
|
||||
QString CommodityData::shortName()
|
||||
{
|
||||
return m_shortName;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
QString name() override;
|
||||
void setName(const QString &name);
|
||||
|
||||
QString shortName() const;
|
||||
QString shortName() override;
|
||||
void setShortName(const QString &shortName);
|
||||
|
||||
QString code() const;
|
||||
|
||||
Reference in New Issue
Block a user