forked from qt-creator/qt-creator
QtSupport: Fix partial delete of ExampleItem objects
If we delete items via the base class destructor, it needs to be virtual. Change-Id: Id5deaa3f327d881b93852b5cbf1cf2940bb333d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -88,6 +88,7 @@ private:
|
|||||||
class CORE_EXPORT ListItem
|
class CORE_EXPORT ListItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~ListItem() {}
|
||||||
QString name;
|
QString name;
|
||||||
QString description;
|
QString description;
|
||||||
QString imageUrl;
|
QString imageUrl;
|
||||||
|
|||||||
@@ -103,6 +103,8 @@ enum InstructionalType
|
|||||||
class ExampleItem : public Core::ListItem
|
class ExampleItem : public Core::ListItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
~ExampleItem() override {}
|
||||||
|
|
||||||
QString projectPath;
|
QString projectPath;
|
||||||
QString docUrl;
|
QString docUrl;
|
||||||
QStringList filesToOpen;
|
QStringList filesToOpen;
|
||||||
|
|||||||
Reference in New Issue
Block a user