Fix endless loop when configured layout cannot be loaded

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

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.

Frederik Schwarzer
Wolfgang Bauer
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 22600c69edbf59bc83377e3b96e3899ba935b1a3 by Wolfgang Bauer to branch Applications/16.04.
Loading...