forked from quickshell/quickshell
core/generation: fix incuabation controller use after free
qobject_casts were failing causing old controllers to never be removed from the list.
This commit is contained in:
parent
c6bf826031
commit
b6dc6967a1
2 changed files with 34 additions and 10 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <qcontainerfwd.h>
|
||||
#include <qfilesystemwatcher.h>
|
||||
#include <qobject.h>
|
||||
#include <qpair.h>
|
||||
#include <qqmlincubator.h>
|
||||
#include <qtclasshelpermacros.h>
|
||||
|
||||
|
@ -49,5 +50,5 @@ private slots:
|
|||
private:
|
||||
void postReload();
|
||||
void assignIncubationController();
|
||||
QVector<QQmlIncubationController*> incubationControllers;
|
||||
QVector<QPair<QQmlIncubationController*, QObject*>> incubationControllers;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue