[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Martin Koller <kollix () aon ! at>
Date:       2009-08-01 18:13:21
Message-ID: 1249150401.096554.19640.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1005669 by mkoller:

escape the window title text in tooltip so that HTML tags inside it are not
rendered as HTML.
(same problem as #52223)


 M  +2 -1      windowtaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/windowtaskitem.cpp #1005668:1005669
@@ -29,6 +29,7 @@
 #include <QTimer>
 #include <QApplication>
 #include <QVarLengthArray>
+#include <QTextDocument>
 
 // KDE
 #include <KAuthorized>
@@ -211,7 +212,7 @@
                                 Qt::KeepAspectRatio, Qt::SmoothTransformation);
         }
 
-        Plasma::ToolTipContent data(m_task->name(),
+        Plasma::ToolTipContent data(Qt::escape(m_task->name()),
                                     i18nc("Which virtual desktop a window is currently on", "On %1",
                                     KWindowSystem::desktopName(m_task->desktop())), p);
         data.setWindowToPreview(m_task->task()->window());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic