If during the play we click on "new" or type "d" (instead of "f", for turning the board), the kmahjongg will start a new game or demo without warning, it means loosing the current play. Especially the "d" key is close to the "f" one, which means possible mistake and game restart without notice.
Created attachment 104182 [details] Patch-1
Created attachment 104183 [details] Patch-2
Created attachment 104184 [details] Patch-3
The three patches solve the issue by an question dialog. Decide by yourself if you want to push it or change it before. Greetings
A possibly relevant merge request was started @ https://invent.kde.org/games/kmahjongg/-/merge_requests/8
Git commit 4cb86176e64bb8cb924d529184dfa1e767fb7e95 by Christian Krippendorf. Committed on 08/07/2022 at 15:59. Pushed by krippendorf into branch 'master'. Ask before demo mode after change When starting a demo, the game will be restarted and there is no question, whether it should be saved. Now if the game changed, the user gets the opportunity to save the game before demo or a game restart. M +69 -0 src/kmahjongg.cpp M +14 -0 src/kmahjongg.h https://invent.kde.org/games/kmahjongg/commit/4cb86176e64bb8cb924d529184dfa1e767fb7e95