diff options
| author | Felix Ernst <[email protected]> | 2022-09-15 14:15:31 +0200 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2022-09-15 14:15:31 +0200 |
| commit | 3dd49a85396a47f943c722047d44212b8d1600ee (patch) | |
| tree | 74c1d28e017dfed6be0a16c1e421c68cc5b02aba /src/views/dolphinview.cpp | |
| parent | 8ff021ca69288a27ef8d6fe64b7efff8b02a27e4 (diff) | |
[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 <[email protected]>
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index a00d485c8..ea2956924 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -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 |
