~schumski-deactivatedaccount-deactivatedaccount/smooth-tasks-fork/4.8

« back to all changes in this revision

Viewing changes to applet/SmoothTasks/Task.h

  • Committer: Toni Dietze
  • Date: 2012-07-08 17:36:33 UTC
  • Revision ID: hg-v1:b17deacfe0f5a35962b5a1d690f14b03735c1289
Task.{h,cpp}: removed useless code for transition from StartupItem to TaskItem

The code was useless because SLOT(gotTaskPointer()) is conected to SIGNAL(gotTaskPointer()) of m_task. So the sender in SLOT(gotTaskPointer()) must be m_task, which renders the update of m_task useless.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        bool                    isValid() const { return m_abstractItem != NULL; }
92
92
 
93
93
private:
94
 
        void setWindowTask(TaskManager::TaskItem* taskItem);
95
 
 
96
94
        TaskManager::TaskItem              *m_task;
97
95
        TaskManager::TaskGroup             *m_group;
98
96
        TaskManager::LauncherItem                  *m_launcher;