Commit 8df48a8f authored by Mariusz Glebocki's avatar Mariusz Glebocki
Browse files

Remove SessionController from the factory during deletion

Fixes warning:

"kf5.kxmlgui: 0xXXXXXXXXXXXX deleted without having been removed from
 the factory first. This will leak standalone popupmenus and could lead
 to crashes."
parent 0db4e889
......@@ -232,6 +232,9 @@ SessionController::~SessionController()
if (!_editProfileDialog.isNull()) {
delete _editProfileDialog.data();
}
if(factory()) {
factory()->removeClient(this);
}
}
void SessionController::trackOutput(QKeyEvent* event)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment