Review Request 119119: bugfix: 332596 - crash when exiting unfinished practice
Andreas Xavier
andxav at zoho.com
Mon Jul 7 15:43:46 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119119/
-----------------------------------------------------------
(Updated July 7, 2014, 3:43 p.m.)
Review request for KDE Edu.
Changes
-------
I commited the obvious changes where ownership was passed out of the seperately and just left the core of the bug fix in this new version of the patch.
Do the comments in the code clearly explain the problem, the solution and when the solution can be removed from the code?
Bugs: 332596
http://bugs.kde.org/show_bug.cgi?id=332596
Repository: parley
Description
-------
Problem: The bug was that if the qstyled KLineEdit answerEdit held focus when the WrittenPracticeWidget was deleted, then a focus event passed to the deleted KLineEdit would be passed to the QStyleSheet and return an invalid pointer to an already deleted QStyle.
Fix: This patch sets the focus to helpLabel before the object is deleted. It does this by calling modeWidgetDestroyed(), which calls objectDestroyed() before the focus changing event will be invalid.
Diffs (updated)
-----
src/practice/writtenpracticewidget.h 9b25987
src/practice/writtenpracticewidget.cpp f20ac6d
src/practice/abstractwidget.h e9ef394
src/practice/abstractwidget.cpp f992054
src/practice/guifrontend.h 60e6fdc
src/practice/guifrontend.cpp 99fc015
src/practice/practicemainwindow.cpp cee231c
Diff: https://git.reviewboard.kde.org/r/119119/diff/
Testing
-------
Replicated the GUI conditions of the bug by hand, before and after the fix.
Thanks,
Andreas Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20140707/e9baf9d1/attachment.html>
More information about the kde-edu
mailing list