Fix crash when edit a group operation notes.

This commit is contained in:
Roman Telezhynskyi 2021-02-06 16:39:47 +02:00
parent 2bb95154cd
commit 4665bc16e0
3 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Version 0.7.44 (unreleased)
- Placeholder %size% has incorrect value.
- Values for waist and hip swapped for individual measurements.
- Fix crash when edit a group operation notes.
# Version 0.7.43 Jan 31, 2021
- Improve Windows installer. Avoid crashing on checking if a program is still running.

View File

@ -88,6 +88,15 @@ void VAbstractOperation::SetSuffix(const QString &suffix)
SaveOption(obj);
}
//---------------------------------------------------------------------------------------------------------------------
void VAbstractOperation::SetNotes(const QString &notes)
{
m_notes = notes;
QSharedPointer<VGObject> obj = VContainer::GetFakeGObject(m_id);
SaveOption(obj);
}
//---------------------------------------------------------------------------------------------------------------------
QVector<SourceItem> VAbstractOperation::SourceItems() const
{

View File

@ -86,6 +86,8 @@ public:
QString Suffix() const;
void SetSuffix(const QString &suffix);
virtual void SetNotes(const QString &notes) override;
QVector<SourceItem> SourceItems() const;
virtual void GroupVisibility(quint32 object, bool visible) override;