public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amarok] epel10.2: - workaround info applet crasher (kde#227639,kde#229756)
@ 2026-07-06 18:31 Rex Dieter
  0 siblings, 0 replies; only message in thread
From: Rex Dieter @ 2026-07-06 18:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/amarok
Branch : epel10.2
Commit : cf7f0c86b1a78101d80ee7e787c1875990302b9d
Author : Rex Dieter <rdieter@fedoraproject.org>
Date   : 2010-03-22T12:58:58+00:00
Stats  : +86/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/amarok/c/cf7f0c86b1a78101d80ee7e787c1875990302b9d?branch=epel10.2

Log:
- workaround info applet crasher (kde#227639,kde#229756)

---
diff --git a/a62fed8c667a076daa21fdf8360708813f1bf9e0.patch b/a62fed8c667a076daa21fdf8360708813f1bf9e0.patch
new file mode 100644
index 0000000..03e9257
--- /dev/null
+++ b/a62fed8c667a076daa21fdf8360708813f1bf9e0.patch
@@ -0,0 +1,76 @@
+From a62fed8c667a076daa21fdf8360708813f1bf9e0 Mon Sep 17 00:00:00 2001
+From: Nikolaj Hald Nielsen <nhn@kde.org>
+Date: Mon, 22 Mar 2010 09:46:32 +0100
+Subject: [PATCH] Work around crash in the Info applet caused by a bug in certain versions of Qt.
+
+BUG: 229756
+BUG: 227639
+---
+ src/context/applets/info/InfoApplet.cpp |   19 +++++++++++++------
+ src/context/applets/info/InfoApplet.h   |    2 ++
+ 2 files changed, 15 insertions(+), 6 deletions(-)
+
+diff --git a/src/context/applets/info/InfoApplet.cpp b/src/context/applets/info/InfoApplet.cpp
+index 166da4c..e415e98 100644
+--- a/src/context/applets/info/InfoApplet.cpp
++++ b/src/context/applets/info/InfoApplet.cpp
+@@ -40,18 +40,30 @@ QString InfoApplet::s_defaultHtml = "<html>"
+ 
+ InfoApplet::InfoApplet( QObject* parent, const QVariantList& args )
+     : Context::Applet( parent, args )
++    , m_webView( 0 )
+     , m_initialized( false )
+     , m_currentPlaylist( 0 )
++   
+ {
+     setHasConfigurationInterface( false );
+     setBackgroundHints( Plasma::Applet::NoBackground );
++}
++
++InfoApplet::~InfoApplet()
++{
++    delete m_webView;
++}
++
++
++void  InfoApplet::init()
++{
+ 
+     dataEngine( "amarok-info" )->connectSource( "info", this );
+ 
+     m_webView = new AmarokWebView( this );
+ 
+     resize( 500, -1 );
+-    
++
+     QPalette p = m_webView->palette();
+     p.setColor( QPalette::Dark, QColor( 255, 255, 255, 0)  );
+     p.setColor( QPalette::Window, QColor( 255, 255, 255, 0)  );
+@@ -62,11 +74,6 @@ InfoApplet::InfoApplet( QObject* parent, const QVariantList& args )
+     constraintsEvent();
+ }
+ 
+-InfoApplet::~InfoApplet()
+-{
+-    delete m_webView;
+-}
+-
+ void InfoApplet::constraintsEvent( Plasma::Constraints constraints )
+ {
+     Q_UNUSED( constraints )
+diff --git a/src/context/applets/info/InfoApplet.h b/src/context/applets/info/InfoApplet.h
+index 4be28fc..775ea7c 100644
+--- a/src/context/applets/info/InfoApplet.h
++++ b/src/context/applets/info/InfoApplet.h
+@@ -48,6 +48,8 @@ public:
+     InfoApplet( QObject* parent, const QVariantList& args );
+     virtual ~InfoApplet();
+ 
++    void init();
++
+     void paintInterface( QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect );
+     void constraintsEvent( Plasma::Constraints constraints = Plasma::AllConstraints );
+ 
+-- 
+1.6.1
+

diff --git a/amarok.spec b/amarok.spec
index 7cffd6f..e94375f 100644
--- a/amarok.spec
+++ b/amarok.spec
@@ -2,7 +2,7 @@
 Name:    amarok
 Summary: Media player
 Version: 2.3.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 Group: 	 Applications/Multimedia
 License: GPLv2+
@@ -13,6 +13,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch50: amarok-2.2.1.90-qtscript_not_required.patch
 
 ## upstream patches
+# http://bugs.kde.org/227639
+# http://bugs.kde.org/229756
+Patch100: http://gitorious.org/amarok/amarok/commit/a62fed8c667a076daa21fdf8360708813f1bf9e0.patch
 
 BuildRequires: curl-devel
 BuildRequires: desktop-file-utils
@@ -82,6 +85,9 @@ Obsoletes: amarok-utilities < 2.0.96
 
 %patch50 -p1 -b .qtscript_not_required
 
+%patch100 -p1 -b .info_applet_workaround 
+
+
 
 %build
 mkdir -p %{_target_platform}
@@ -173,6 +179,9 @@ fi
 
 
 %changelog
+* Mon Mar 22 2010 Rex Dietr <rdieter@fedoraproject.org>  - 2.3.0-3
+- workaround info applet crasher (kde#227639,kde#229756)
+
 * Thu Mar 11 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.3.0-2
 - fix Source0 URL
 - -libs: drop unused/extraneous kdelibs4 dep

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-06 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 18:31 [rpms/amarok] epel10.2: - workaround info applet crasher (kde#227639,kde#229756) Rex Dieter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox