summaryrefslogtreecommitdiffstats
path: root/redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-30 21:15:08 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-30 21:15:08 +0200
commit2d4b1216e089a2259539e514761f2c11b0b93212 (patch)
tree4c8f8a151cb4be57d09f2f3a019150aa07ff9ef9 /redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch
parent2150025507b510d1a8c40872487ac191ce12b02b (diff)
downloadtde-packaging-2d4b1216e089a2259539e514761f2c11b0b93212.tar.gz
tde-packaging-2d4b1216e089a2259539e514761f2c11b0b93212.zip
RPM Packaging: updates
Diffstat (limited to 'redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch')
-rw-r--r--redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch b/redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch
new file mode 100644
index 000000000..64272fe6a
--- /dev/null
+++ b/redhat/applications/tdmtheme/tdmtheme-3.5.13.2-fix_segv.patch
@@ -0,0 +1,35 @@
+--- trinity-tdmtheme-3.5.13.2/src/kdmtheme.cpp.ORI 2013-06-13 08:36:49.449599069 +0200
++++ trinity-tdmtheme-3.5.13.2/src/kdmtheme.cpp 2013-06-13 08:44:01.014366366 +0200
+@@ -268,16 +268,22 @@
+
+ void KDMThemeWidget::updateInfoView( ThemeData *theme )
+ {
+- info->setText(
+- ((theme->copyright.length() > 0) ?
+- i18n("<qt><strong>Copyright:</strong> %1<br/></qt>",
+- theme->copyright) : "") +
+- ((theme->description.length() > 0) ?
+- i18n("<qt><strong>Description:</strong> %1</qt>",
+- theme->description) : "") );
+- preview->setPixmap( theme->path + '/' + theme->screenShot );
+- preview->setText( theme->screenShot.isEmpty() ?
+- "Screenshot not available" : TQString() );
++ if(theme) {
++ info->setText(
++ ((theme->copyright.length() > 0) ?
++ i18n("<qt><strong>Copyright:</strong> %1<br/></qt>",
++ theme->copyright) : "") +
++ ((theme->description.length() > 0) ?
++ i18n("<qt><strong>Description:</strong> %1</qt>",
++ theme->description) : "") );
++ preview->setPixmap( theme->path + '/' + theme->screenShot );
++ preview->setText( theme->screenShot.isEmpty() ?
++ i18n("Screenshot not available") : TQString() );
++ } else {
++ info->setText(i18n("No theme selected."));
++ preview->setPixmap(NULL);
++ preview->setText(i18n("Screenshot not available"));
++ }
+ }
+
+ void KDMThemeWidget::installNewTheme()