<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>287411</bug_id>
          
          <creation_ts>2011-11-23 22:58:27 +0000</creation_ts>
          <short_desc>KMahjongg after shuffle no information about &quot;no moves left&quot;</short_desc>
          <delta_ts>2011-12-14 11:43:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmahjongg</product>
          <component>general</component>
          <version>0.8</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Christian Krippendorf">CerebrosuS</reporter>
          <assigned_to name="Mauricio Piacentini">piacentini</assigned_to>
          <cc>CerebrosuS</cc>
    
    <cc>kde-games-bugs-null</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1189733</commentid>
    <comment_count>0</comment_count>
      <attachid>66005</attachid>
    <who name="Christian Krippendorf">CerebrosuS</who>
    <bug_when>2011-11-23 22:58:27 +0000</bug_when>
    <thetext>Created attachment 66005
Solves the bug.

Version:           0.8 (using KDE 4.7.3) 
OS:                Linux

After running in a non solveable combination i get informated by KMahjongg, that no moves left. After shuffle and the game is not solveable too, i don&apos;t get any information about not solveable game.

Reproducible: Always

Steps to Reproduce:
Uncheck creation of solveable games. Play a game until it is unsolveable and then shuffle until an unsolveable game will be created.

Actual Results:  
I won&apos;t get any information after shuffle and not solveable, that no moves left.

Expected Results:  
A information dialog about no moves left.

I add a patch which solved this bug (i feel like this is a bug). Simple extract the moving left tests and the dialog output in a separate method. This method gets called from the shuffle and the mouseEvent methods.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199507</commentid>
    <comment_count>1</comment_count>
    <who name="Christian Krippendorf">CerebrosuS</who>
    <bug_when>2011-12-14 11:43:55 +0000</bug_when>
    <thetext>SVN commit 1268724 by krippendorf:

BUG: 287411
FIXED-IN: KDE SC 4.8
REVIEW: 6837

After shuffle the stones because no moves left, you will now get a dialog about &quot;No moves left&quot; if the game isn&apos;t solvable.


 M  +16 -2     boardwidget.cpp  
 M  +5 -0      boardwidget.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1268724</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66005</attachid>
            <date>2011-11-23 22:58:27 +0000</date>
            <delta_ts>2011-11-23 22:58:27 +0000</delta_ts>
            <desc>Solves the bug.</desc>
            <filename>NoMovesLeftAfterShuffle.diff</filename>
            <type>text/plain</type>
            <size>1789</size>
            <attacher name="Christian Krippendorf">CerebrosuS</attacher>
            
              <data encoding="base64">SW5kZXg6IGttYWhqb25nZy9ib2FyZHdpZGdldC5oCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGttYWhqb25nZy9i
b2FyZHdpZGdldC5oCShSZXZpc2lvbiAxMjY1NjA0KQorKysga21haGpvbmdnL2JvYXJkd2lkZ2V0
LmgJKEFyYmVpdHNrb3BpZSkKQEAgLTI4OSw2ICsyODksMTEgQEAKICAgICAgKi8KIAlpbnQgcmVx
dWlyZWRWZXJ0aWNhbENlbGxzKCk7CiAKKyAgICAvKioKKyAgICAgKiBUaG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AgS01lc3NhZ2VCb3g6OmluZm9ybWF0aW9uKHRoaXMsIGkxOG4oIkdh
bWUgb3ZlcjogWW91IGhhdmUgbm8gbW92ZXMgbGVmdC4iKSk7CisgICAgICAgICAgICAgICAgICAg
ICAgdmFsaWRNb3Zlc0F2YWlsYWJsZSgpOwogICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAg
ICAgICAgICAgfQogICAgICAgICAgICAgICAgIGVsc2UKQEAgLTExMDgsOCArMTEwOCwyMiBAQAog
ICAvLyAzMDAgcG9pbnRzIHBlciB1c2UKICAgY2hlYXRzVXNlZCArPSAxNTsKICAgZHJhd1RpbGVO
dW1iZXIoKTsKKyAgCisgIC8vIFRlc3QgaWYgYW55IG1vdmVzIGFyZSBhdmFpbGFibGUKKyAgdmFs
aWRNb3Zlc0F2YWlsYWJsZSgpOwogfQogCitib29sIEJvYXJkV2lkZ2V0Ojp2YWxpZE1vdmVzQXZh
aWxhYmxlKCkKK3sKKyAgaWYoIUdhbWUtPmZpbmRNb3ZlKFRpbWVyUG9zMSwgVGltZXJQb3MyKSkK
KyAgeworICAgIEtNZXNzYWdlQm94OjppbmZvcm1hdGlvbih0aGlzLCBpMThuKCJHYW1lIG92ZXI6
IFlvdSBoYXZlIG5vIG1vdmVzIGxlZnQuIikpOworICAgIHJldHVybiBmYWxzZTsKKyAgfQorICAK
KyAgcmV0dXJuIHRydWU7Cit9CisKIFFTdHJpbmcgIEJvYXJkV2lkZ2V0OjpnZXRMYXlvdXROYW1l
KCkgewogICAgIFFTdHJpbmcga2V5KCJOYW1lIik7CiAgICAgcmV0dXJuIHRoZUJvYXJkTGF5b3V0
LmF1dGhvclByb3BlcnR5KGtleSk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>