[Kde-games-devel] Review Request 125508: Create application directory if it doesn't exist
Wolfgang Bauer
wbauer at tmo.at
Sat Oct 3 19:26:58 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125508/
-----------------------------------------------------------
(Updated Oct. 3, 2015, 7:26 p.m.)
Status
------
This change has been marked as submitted.
Review request for KDE Games.
Changes
-------
Submitted with commit a214428743993ac1ede3fa48d757ca339f498fd9 by Wolfgang Bauer to branch Applications/15.08.
Bugs: 350160
http://bugs.kde.org/show_bug.cgi?id=350160
Repository: kpat
Description
-------
Unlike KStandardDirs, QStandardDirs doesn't guarantee that the returned directory actually exists, see also https://community.kde.org/Frameworks/Porting_Notes/KStandardDirs .
This patch checks for the existence of the directory and creates it if it isn't there, before the game state is saved.
Diffs
-----
mainwindow.cpp e604a79
Diff: https://git.reviewboard.kde.org/r/125508/diff/
Testing
-------
- Delete ~/.local/share/kpat if it exists
- Run kpat
- Enable "Remember State on Exit" in the Settings menu
- Select a game and play some moves
- Quit kpat and start it again
The game is correctly restored now.
Thanks,
Wolfgang Bauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20151003/01de1c3e/attachment-0001.html>
More information about the kde-games-devel
mailing list