fix crash from quit of configuration window

v0.6
Michail Vourlakos 8 years ago
parent 7c61147b6e
commit 19569365ac

@ -835,6 +835,10 @@ void DockView::themeChanged()
//! check if the tasks plasmoid exist in the dock //! check if the tasks plasmoid exist in the dock
bool DockView::tasksPresent() bool DockView::tasksPresent()
{ {
if (!this->containment()) {
return false;
}
foreach (Plasma::Applet *applet, this->containment()->applets()) { foreach (Plasma::Applet *applet, this->containment()->applets()) {
KPluginMetaData meta = applet->kPackage().metadata(); KPluginMetaData meta = applet->kPackage().metadata();

Loading…
Cancel
Save