~saviq/unity-2d/screeninfo-refactor

« back to all changes in this revision

Viewing changes to launcher/app/launcherview.cpp

  • Committer: Michał Sawicz
  • Date: 2012-02-03 18:05:42 UTC
  • Revision ID: michal.sawicz@canonical.com-20120203180542-c332b9sma8vjd0ew
[all] make sure ScreenInfo has a parent so that it gets deleted along with it

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    connect(&m_superKeyHoldTimer, SIGNAL(timeout()), SLOT(updateSuperKeyHoldState()));
71
71
    connect(this, SIGNAL(superKeyTapped()), SLOT(toggleDash()));
72
72
 
73
 
    m_screenInfo = new ScreenInfo(ScreenInfo::TopLeft);
 
73
    m_screenInfo = new ScreenInfo(ScreenInfo::TopLeft, this);
74
74
 
75
75
    connect(&launcher2dConfiguration(), SIGNAL(superKeyEnableChanged(bool)), SLOT(updateSuperKeyMonitoring()));
76
76
    updateSuperKeyMonitoring();