[tabbox] Pass parent to TabBoxHandler
Required to get it cleaned up on KWin tear down. Fixes crash on restart. REVIEW: 118344
This commit is contained in:
parent
3cd932f441
commit
41b7b7f3e5
3 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ namespace TabBox
|
|||
{
|
||||
|
||||
TabBoxHandlerImpl::TabBoxHandlerImpl(TabBox* tabBox)
|
||||
: TabBoxHandler()
|
||||
: TabBoxHandler(tabBox)
|
||||
, m_tabBox(tabBox)
|
||||
, m_desktopFocusChain(new DesktopChainManager(this))
|
||||
{
|
||||
|
|
|
@ -334,8 +334,8 @@ void TabBoxHandlerPrivate::show()
|
|||
* TabBoxHandler
|
||||
***********************************************/
|
||||
|
||||
TabBoxHandler::TabBoxHandler()
|
||||
: QObject()
|
||||
TabBoxHandler::TabBoxHandler(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
KWin::TabBox::tabBox = this;
|
||||
d = new TabBoxHandlerPrivate(this);
|
||||
|
|
|
@ -95,7 +95,7 @@ class TabBoxHandler : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TabBoxHandler();
|
||||
TabBoxHandler(QObject *parent);
|
||||
virtual ~TabBoxHandler();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue