mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
23 lines
769 B
Diff
23 lines
769 B
Diff
commit 709f75ac353cd735ccac31f87363ea90dde345d3
|
|
Author: Marco Martin <notmart@gmail.com>
|
|
Date: Tue Feb 1 21:15:49 2011 +0100
|
|
|
|
don't collapse when it's destroying
|
|
try to not crash upon deletion of the extender
|
|
|
|
diff --git a/plasma/extenders/extenderitem.cpp b/plasma/extenders/extenderitem.cpp
|
|
index bdbc886..3e5809f 100644
|
|
--- a/plasma/extenders/extenderitem.cpp
|
|
+++ b/plasma/extenders/extenderitem.cpp
|
|
@@ -596,6 +596,10 @@ void ExtenderItem::destroy()
|
|
|
|
void ExtenderItem::setCollapsed(bool collapsed)
|
|
{
|
|
+ if (extender()->d->destroying) {
|
|
+ return;
|
|
+ }
|
|
+
|
|
config().writeEntry("isCollapsed", collapsed);
|
|
d->collapsed = collapsed;
|
|
d->collapseIcon->setToolTip(collapsed ? i18n("Expand this widget") : i18n("Collapse this widget"));
|