[client] Add context pointer to connects in PlasmaWindowModel

Authored by graesslin on May 17 2016, 10:11 AM.

Description

[client] Add context pointer to connects in PlasmaWindowModel

Summary:
When the model gets destroyed the lambda connections were still invoked
and could cause crashers.

Test Plan: Test case added and each one verified that it crashed

Reviewers: Plasma, hein

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D1624

Details