Review Request 122105: Fix KgDifficulty saving on app close
Kevin Funk
kfunk at kde.org
Mon Jan 19 14:43:56 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122105/#review74330
-----------------------------------------------------------
Can't you `Q_ASSERT(qApp)` in `KSharedConfig::openConfig()` in order to make sure people don't do that?
- Kevin Funk
On Jan. 17, 2015, 9:48 p.m., Albert Astals Cid wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122105/
> -----------------------------------------------------------
>
> (Updated Jan. 17, 2015, 9:48 p.m.)
>
>
> Review request for KDE Frameworks and KDE Games.
>
>
> Repository: libkdegames
>
>
> Description
> -------
>
> Since you can't use KSharedConfig::openConfig from a static destructor anymore (the QCoreApplication is gone and thus can't find the name of the thing) use a post routine to save the level before the QCoreApplication is gone.
>
> KF5 people: Is this something worth mentioning on the porting notes or using KSharedConfig::openConfig from a static destructor is a bit of a corner case anyway?
>
>
> Diffs
> -----
>
> kgdifficulty.cpp 94489c7
>
> Diff: https://git.reviewboard.kde.org/r/122105/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Albert Astals Cid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150119/0fd8052e/attachment.html>
More information about the Kde-frameworks-devel
mailing list