mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
core/menu: disconnect menu before unref when changed
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -71,8 +71,8 @@ void QsMenuOpener::setMenu(QsMenuHandle* menu) {
|
||||
QObject::disconnect(this->mMenu, nullptr, this, nullptr);
|
||||
|
||||
if (this->mMenu->menu()) {
|
||||
this->mMenu->menu()->unref();
|
||||
QObject::disconnect(this->mMenu->menu(), nullptr, this, nullptr);
|
||||
this->mMenu->menu()->unref();
|
||||
}
|
||||
|
||||
this->mMenu->unrefHandle();
|
||||
|
||||
Reference in new issue
Block a user