summaryrefslogtreecommitdiffstats
path: root/src/tqtraylabel.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-04-25 20:17:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-04-25 20:17:34 +0900
commit097107791f765a2996939e25463f79afe27be207 (patch)
treeb3cb601caabe3871e0005779340f8873e17ec62f /src/tqtraylabel.cpp
parent63502d3ac497715af3379a88b2270b04192881ea (diff)
downloadtdedocker-097107791f765a2996939e25463f79afe27be207.tar.gz
tdedocker-097107791f765a2996939e25463f79afe27be207.zip
Make sure to ignore applications that can't be restored.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tqtraylabel.cpp')
-rw-r--r--src/tqtraylabel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tqtraylabel.cpp b/src/tqtraylabel.cpp
index 4e0b717..925ffd2 100644
--- a/src/tqtraylabel.cpp
+++ b/src/tqtraylabel.cpp
@@ -1070,6 +1070,10 @@ bool TQTrayLabel::restoreState(TDEConfig *config)
dock();
scanClients(); // Grab window
+ if (mDockedWindow == None)
+ {
+ return false;
+ }
if (mWithdrawn)
{
withdraw();