fixed #11752: Necessity to clear data when popup is destroyed
This commit is contained in:
parent
dd8a07e1e5
commit
8583805af3
2 changed files with 7 additions and 1 deletions
|
@ -69,6 +69,12 @@ PopupView::PopupView(QQuickItem* parent)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PopupView::~PopupView()
|
||||||
|
{
|
||||||
|
m_contentItem->deleteLater();
|
||||||
|
delete m_closeController;
|
||||||
|
}
|
||||||
|
|
||||||
QQuickItem* PopupView::parentItem() const
|
QQuickItem* PopupView::parentItem() const
|
||||||
{
|
{
|
||||||
if (!parent()) {
|
if (!parent()) {
|
||||||
|
|
|
@ -86,7 +86,7 @@ class PopupView : public QObject, public QQmlParserStatus, async::Asyncable
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit PopupView(QQuickItem* parent = nullptr);
|
explicit PopupView(QQuickItem* parent = nullptr);
|
||||||
~PopupView() override = default;
|
~PopupView() override;
|
||||||
|
|
||||||
enum OpenPolicy {
|
enum OpenPolicy {
|
||||||
Default = 0,
|
Default = 0,
|
||||||
|
|
Loading…
Reference in a new issue