Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
[WindowManager] Make sure to set ActiveWorkspace to null on destruction
Browse files Browse the repository at this point in the history
This makes sure to set ActiveWorkspace to null on destruction of all
workspaces and screens
  • Loading branch information
mariogrip committed Oct 2, 2019
1 parent fa0af33 commit b5938e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/WindowManager/Screens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Screens::Screens(const QSharedPointer<qtmir::Screens>& model)

Screens::~Screens()
{
WorkspaceManager::instance()->setActiveWorkspace(nullptr);
qDeleteAll(m_screens);
m_screens.clear();
}
Expand Down

0 comments on commit b5938e7

Please sign in to comment.