mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
[dolphinview] Disconnect modelChanged when destructing
Deleting DolphinView deletes KItemListContainer, which deletes KItemListController, which emits modelChanged, which causes a signal delivery to the already destroyed DolphinView This is never good, and in Qt6 causes an assert (https://codereview.qt-project.org/c/qt/qtbase/+/381860). Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
parent
8ff021ca69
commit
3dd49a8539
|
@ -235,6 +235,7 @@ DolphinView::DolphinView(const QUrl& url, QWidget* parent) :
|
|||
|
||||
DolphinView::~DolphinView()
|
||||
{
|
||||
disconnect(m_container->controller(), &KItemListController::modelChanged, this, &DolphinView::slotModelChanged);
|
||||
}
|
||||
|
||||
QUrl DolphinView::url() const
|
||||
|
|
Loading…
Reference in a new issue