[Kde-games-devel] Review Request 128279: Fix endless loop when configured layout cannot be loaded

Frederik Schwarzer schwarzer at kde.org
Thu Jun 23 21:46:51 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128279/#review96830
-----------------------------------------------------------



Compiled and ran it. Works on my machine. Thanks for digging into this!

- Frederik Schwarzer


On June 23, 2016, 8:03 p.m., Wolfgang Bauer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128279/
> -----------------------------------------------------------
> 
> (Updated June 23, 2016, 8:03 p.m.)
> 
> 
> Review request for KDE Games.
> 
> 
> Bugs: 361132
>     http://bugs.kde.org/show_bug.cgi?id=361132
> 
> 
> Repository: kmahjongg
> 
> 
> Description
> -------
> 
> Adjust the configured layout when the default is loaded as fallback.
> Otherwise loadSettings() will think that the layout has been changed in the settings, load the layout again and call startNewGame(), which in turn calls loadSettings() again, resulting in an endless loop.
> 
> 
> Diffs
> -----
> 
>   kmahjongg.cpp 58754ad 
> 
> Diff: https://git.reviewboard.kde.org/r/128279/diff/
> 
> 
> Testing
> -------
> 
> Set an invalid/inexistent file for Layout_file in kmahjonggrc and run kmahjongg.
> Before it didn't even open a window, now it starts fine using the default layout.
> 
> 
> Thanks,
> 
> Wolfgang Bauer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20160623/7518fd3a/attachment.html>


More information about the kde-games-devel mailing list