delete model to prevent memory leak

This commit is contained in:
Martin Brodbeck 2018-07-27 10:10:48 +02:00
parent 2003530587
commit fb8bcc71e2
2 changed files with 17 additions and 1 deletions

View file

@ -14,6 +14,7 @@ class SellerDialog : public QDialog
public:
SellerDialog(QWidget* parent = nullptr,
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
~SellerDialog();
private slots:
void onSellerViewSelectionChanged(const QItemSelection& selected,
@ -25,6 +26,7 @@ class SellerDialog : public QDialog
void on_model_duplicateSellerNo(const QString& message);
virtual void accept() override;
Ui::SellerDialog ui_;
Marketplace* market_;
};
#endif