Fix endless loop when configured layout cannot be loaded

Review Request #128279 - Created June 23, 2016 and submitted - Latest diff uploaded

Information
Wolfgang Bauer
kmahjongg
Applications/16.04
361132
Reviewers
Kdegames

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.

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.

Loading...