summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-11-16 20:24:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-11-16 21:11:19 +0900
commitcb5a7dbb20254071043fe8eb8d5cd7e63a5bf604 (patch)
tree3836b0ab8b7c4321f97d41659cbf12ef8fb56c72
parent6996b929ab4f08df8a8d37199023bd4d3b3a65dd (diff)
downloadtwin-style-dekorator-cb5a7dbb.tar.gz
twin-style-dekorator-cb5a7dbb.zip
Fix SEGV on login caused by PR #11 when transparency is disabled
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 10e3a7c0b7813a66f235482270b8ab02194384f8)
-rw-r--r--client/deKoratorclient.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/deKoratorclient.cpp b/client/deKoratorclient.cpp
index dc14eeb..7b2f375 100644
--- a/client/deKoratorclient.cpp
+++ b/client/deKoratorclient.cpp
@@ -198,10 +198,7 @@ DeKoratorFactory::DeKoratorFactory()
readConfig();
initialized_ = TRUE;
- if (transparency_)
- imageHolder = new QImageHolder(TQImage(), TQImage());
- else
- imageHolder = nullptr;
+ imageHolder = new QImageHolder(TQImage(), TQImage());
initPixmaps();