[kajongg] [Bug 461683] every time i finish a game (win or lose) the following error dialog appears.

2022-11-11 Thread Wolfgang Rohdewald
https://bugs.kde.org/show_bug.cgi?id=461683

Wolfgang Rohdewald  changed:

   What|Removed |Added

 CC||wolfg...@rohdewald.de
 Status|REPORTED|RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Wolfgang Rohdewald  ---
There is a fix in the pipeline for the next version (only on my PC so far). You
can apply it manually:

commit 6885135f90c2f65950de7f0d2cb2f39563e086c1
Author: Wolfgang Rohdewald 
Date:   Wed Jun 22 19:40:31 2022 +0200

turning a tile to make it invisible is also legal

used when shuffling for the next hand.

Since when did this not work?

diff --git a/src/uitile.py b/src/uitile.py
index e4122648..aa85d724 100644
--- a/src/uitile.py
+++ b/src/uitile.py
@@ -304,7 +304,7 @@ class UITile(AnimatedMixin, QGraphicsObject, StrMixin):
 def tile(self, value):  # pylint: disable=arguments-differ
 """set tile name and update display"""
 if value is not self._tile:
-assert not self._tile.isKnown or (self._tile.exposed ==
value.exposed)
+assert not self._tile.isKnown or not value.isKnown or
(self._tile.exposed == value.exposed)
 self._tile = value
 self.setDrawingOrder() # because known tiles are above unknown
tiles
 self.update()

-- 
You are receiving this mail because:
You are watching all bug changes.

[kajongg] [Bug 461683] every time i finish a game (win or lose) the following error dialog appears.

2022-11-10 Thread sederb
https://bugs.kde.org/show_bug.cgi?id=461683

sederb  changed:

   What|Removed |Added

 CC||sederb1...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.