]> cloud.milkyroute.net Git - dolphin.git/commit
[dolphinview] Disconnect modelChanged when destructing
authorFelix Ernst <fe.a.ernst@gmail.com>
Thu, 15 Sep 2022 12:15:31 +0000 (14:15 +0200)
committerFelix Ernst <fe.a.ernst@gmail.com>
Thu, 15 Sep 2022 12:15:31 +0000 (14:15 +0200)
commit3dd49a85396a47f943c722047d44212b8d1600ee
tree74c1d28e017dfed6be0a16c1e421c68cc5b02aba
parent8ff021ca69288a27ef8d6fe64b7efff8b02a27e4
[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>
src/views/dolphinview.cpp