D7637: Make sure that no interaction is active before clearing the scene

Christian Ehrlicher noreply at phabricator.kde.org
Thu Aug 31 21:03:19 UTC 2017


chehrlic created this revision.
Restricted Application added a reviewer: KDE Games.
Restricted Application added a subscriber: KDE Games.

REVISION SUMMARY
  When the scene/views are cleared and there is still an interaction active, palapeli will crash.
  This happens to due the fact that the interactors are holding pointers to pieces which are cleared
  by Scene::clearPieces()
  BUG 336075

TEST PLAN
  As described in the bug description: Create a shortcut for restarting the puzzle, select a piece
  and move it around. In the meantime restart the puzzle -> no more crash

REPOSITORY
  R423 Palapeli

BRANCH
  bug_336075

REVISION DETAIL
  https://phabricator.kde.org/D7637

AFFECTED FILES
  src/engine/gameplay.cpp

To: chehrlic, #kde_games
Cc: #kde_games
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20170831/c9b48c1c/attachment.html>


More information about the kde-games-devel mailing list