@@ -39,7 +39,9 @@ AbstractButton {
3939 property bool terminationModeEnabled: false
4040
4141 onClicked: {
42− if (!terminationModeEnabled)
42+ if (terminationModeEnabled)
43+ requestedApplicationTermination(application)
44+ else
4345 requestedApplicationActivation(application)
4446 }
4547
@@ -122,8 +124,8 @@ AbstractButton {
122124
123125 CloseIcon {
124126 anchors {
125− left: shapedApplicationImage.left
126− leftMargin: -units.gu(1)
127+ right: shapedApplicationImage.right
128+ rightMargin: -units.gu(1)
127129 top: parent.top
128130 topMargin: -units.gu(1)
129131 }
@@ -131,19 +133,5 @@ AbstractButton {
131133 width: units.gu(6)
132134 id: closeIcon
133135 enabled: root.terminationModeEnabled
134−
135− MouseArea {
136− anchors.fill: parent
137− anchors.left: units.gu(1)
138− anchors.right: units.gu(1)
139− anchors.top: units.gu(1)
140− anchors.bottom: units.gu(1)
141− onClicked: {
142− if (terminationModeEnabled)
143− requestedApplicationTermination(application)
144− else
145− requestedApplicationActivation(application)
146− }
147− }
148136 }
149137}