[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:
Martin Gräßlin 2014-05-27 10:10:07 +02:00
parent 3cd932f441
commit 41b7b7f3e5
3 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ namespace TabBox
{ {
TabBoxHandlerImpl::TabBoxHandlerImpl(TabBox* tabBox) TabBoxHandlerImpl::TabBoxHandlerImpl(TabBox* tabBox)
: TabBoxHandler() : TabBoxHandler(tabBox)
, m_tabBox(tabBox) , m_tabBox(tabBox)
, m_desktopFocusChain(new DesktopChainManager(this)) , m_desktopFocusChain(new DesktopChainManager(this))
{ {

View file

@ -334,8 +334,8 @@ void TabBoxHandlerPrivate::show()
* TabBoxHandler * TabBoxHandler
***********************************************/ ***********************************************/
TabBoxHandler::TabBoxHandler() TabBoxHandler::TabBoxHandler(QObject *parent)
: QObject() : QObject(parent)
{ {
KWin::TabBox::tabBox = this; KWin::TabBox::tabBox = this;
d = new TabBoxHandlerPrivate(this); d = new TabBoxHandlerPrivate(this);

View file

@ -95,7 +95,7 @@ class TabBoxHandler : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
TabBoxHandler(); TabBoxHandler(QObject *parent);
virtual ~TabBoxHandler(); virtual ~TabBoxHandler();
/** /**