Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/applet.cpp
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | |||||
136 | Applet::~Applet() | 136 | Applet::~Applet() | ||
137 | { | 137 | { | ||
138 | if (d->transient) { | 138 | if (d->transient) { | ||
139 | d->resetConfigurationObject(); | 139 | d->resetConfigurationObject(); | ||
140 | } | 140 | } | ||
141 | //let people know that i will die | 141 | //let people know that i will die | ||
142 | emit appletDeleted(this); | 142 | emit appletDeleted(this); | ||
143 | 143 | | |||
144 | // ConfigLoader is deleted when AppletPrivate closes not Applet | ||||
145 | // It saves on closure and emits a signal. | ||||
146 | // disconnect early to avoid a crash. See 411221 | ||||
147 | disconnect(d->configLoader, SIGNAL(configChanged()), this, SLOT(propagateConfigChanged())); | ||||
144 | delete d; | 148 | delete d; | ||
145 | } | 149 | } | ||
146 | 150 | | |||
147 | void Applet::init() | 151 | void Applet::init() | ||
148 | { | 152 | { | ||
149 | //Don't implement anything here, it will be overridden by subclasses | 153 | //Don't implement anything here, it will be overridden by subclasses | ||
150 | } | 154 | } | ||
151 | 155 | | |||
▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines |