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

Wolfgang Bauer wbauer at tmo.at
Thu Jun 23 20:03:08 UTC 2016


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

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/b785e876/attachment.html>


More information about the kde-games-devel mailing list