Hello community,

here is the log from the commit of package picard for openSUSE:Factory checked 
in at 2020-02-14 16:39:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/picard (Old)
 and      /work/SRC/openSUSE:Factory/.picard.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "picard"

Fri Feb 14 16:39:13 2020 rev:38 rq:774219 version:2.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/picard/picard.changes    2019-11-12 
11:58:23.387533039 +0100
+++ /work/SRC/openSUSE:Factory/.picard.new.26092/picard.changes 2020-02-14 
16:39:18.699650517 +0100
@@ -1,0 +2,6 @@
+Thu Feb 13 16:25:33 UTC 2020 - Antonio Larrosa <alarr...@suse.com>
+
+- Add patch to fix a crash when right-clicking on the cover art box.
+  * 0001-Fix-crash-on-PyQt-ge-5.14-on-cover-art-context-menu.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-crash-on-PyQt-ge-5.14-on-cover-art-context-menu.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ picard.spec ++++++
--- /var/tmp/diff_new_pack.kO4A0t/_old  2020-02-14 16:39:20.059651275 +0100
+++ /var/tmp/diff_new_pack.kO4A0t/_new  2020-02-14 16:39:20.063651277 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package picard
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@
 Group:          Productivity/Multimedia/Sound/Utilities
 URL:            https://picard.musicbrainz.org
 Source0:        
https://codeload.github.com/metabrainz/picard/tar.gz/release-%{version}#/%{name}-%{version}.tar.gz
+Patch0:         0001-Fix-crash-on-PyQt-ge-5.14-on-cover-art-context-menu.patch
 BuildRequires:  desktop-file-utils
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
@@ -48,6 +49,7 @@
 
 %prep
 %setup -q -n %{name}-release-%{version}
+%patch0 -p1
 
 %build
 export LANG=en_US.UTF-8

++++++ 0001-Fix-crash-on-PyQt-ge-5.14-on-cover-art-context-menu.patch ++++++
>From 32e05058e0ac5772d7a480287ee428642fbbc9b9 Mon Sep 17 00:00:00 2001
From: Philipp Wolfer <ph.wol...@gmail.com>
Date: Tue, 7 Jan 2020 08:22:13 +0100
Subject: [PATCH] PICARD-1700: Fix crash on PyQt >= 5.14 on cover art context
 menu

In PyQt 5.14 the exclusive parameter for QActionGroup is no longer available. 
Also QActionGroup is exclusive by default in Qt5, so there is no need to set 
this.
---
 picard/ui/coverartbox.py | 2 +-
 picard/ui/logview.py     | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/picard/ui/coverartbox.py b/picard/ui/coverartbox.py
index 102704184..bde1c06f5 100644
--- a/picard/ui/coverartbox.py
+++ b/picard/ui/coverartbox.py
@@ -538,7 +538,7 @@ def contextMenuEvent(self, event):
         if not menu.isEmpty():
             menu.addSeparator()
 
-        load_image_behavior_group = QtWidgets.QActionGroup(self.parent, 
exclusive=True)
+        load_image_behavior_group = QtWidgets.QActionGroup(self.parent)
         action = 
load_image_behavior_group.addAction(QtWidgets.QAction(_('Replace front cover 
art on drop'), self.parent, checkable=True))
         action.triggered.connect(partial(self.set_load_image_behavior, 
behavior='replace'))
         if config.setting["load_image_behavior"] == 'replace':
diff --git a/picard/ui/logview.py b/picard/ui/logview.py
index cf75feadd..7bb7813c0 100644
--- a/picard/ui/logview.py
+++ b/picard/ui/logview.py
@@ -129,7 +129,6 @@ def __init__(self, parent=None):
         super().__init__(parent=parent)
 
         self.action_group = QtWidgets.QActionGroup(self)
-        self.action_group .setExclusive(True)
         self.actions = {}
         for level, feat in log.levels_features.items():
             act = QtWidgets.QAction(_(feat.name), self, checkable=True)

Reply via email to