delete model to prevent memory leak
This commit is contained in:
parent
2003530587
commit
fb8bcc71e2
2 changed files with 17 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue