From 70194b269e22711c3bbbc18d339b69aab028371e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 24 Feb 2020 13:12:45 +0900 Subject: 1. Fixed SEGV caused by missing TDE icon loader object. When the applicationi is transformed in a TDE application, the TDE icon loader can be used again. 2. Remove catching of SEGV in code, which was causing 100% CPU load. If something is wrong, better the program terminates and shows an error. Signed-off-by: Michele Calgaro --- src/customtraylabel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/customtraylabel.cpp') diff --git a/src/customtraylabel.cpp b/src/customtraylabel.cpp index 83b89ea..a657a89 100644 --- a/src/customtraylabel.cpp +++ b/src/customtraylabel.cpp @@ -56,8 +56,9 @@ CustomTrayLabel::CustomTrayLabel(const TQStringList& argv, pid_t pid, */ void CustomTrayLabel::installMenu() { - TQPixmap kdocker_png(TDEGlobal::iconLoader()->loadIcon("kdocker", TDEIcon::NoGroup, TDEIcon::SizeSmall)); - setIcon(kdocker_png); + //TQPixmap kdocker_png(TDEGlobal::iconLoader()->loadIcon("kdocker", TDEIcon::NoGroup, TDEIcon::SizeSmall)); + TQPixmap *kdocker_png = new TQPixmap("kdocker"); + setIcon(*kdocker_png); TrayLabelMgr *tlMgr = TrayLabelMgr::instance(); mOptionsMenu = new TQPopupMenu(this); @@ -105,7 +106,7 @@ void CustomTrayLabel::installMenu() mSkipTaskbar->addTo(mOptionsMenu); mMainMenu = new TQPopupMenu(this); - mMainMenu->insertItem(TQIconSet(kdocker_png), + mMainMenu->insertItem(TQIconSet(*kdocker_png), i18n("About KDocker"), tlMgr, SLOT(about())); mMainMenu->insertSeparator(); mMainMenu->insertItem(i18n("Options"), mOptionsMenu); -- cgit v1.2.1