Be prepared that the animated button is destroyed behind our back.
commit82e20cc453105d5871bbc3995d225596a8337340
authorJohannes Sixt <j6t@kdbg.org>
Sat, 22 Feb 2014 19:58:34 +0000 (22 20:58 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sat, 22 Feb 2014 19:58:34 +0000 (22 20:58 +0100)
treee7d881fa49f99bceb233b5badbf1ae2db13ff565
parent9146be31d80c944a0fa770b978faf25ab7c15407
Be prepared that the animated button is destroyed behind our back.

When the user changes the toolbar settings via the Configure Toolbar
dialog, the animated button is deleted by the framework because it is not
part of the settings. (It is re-instated the next time the application is
started.) But until then the pointer to the deleted object must be cleared.
A QPointer<> achieves just that. Fortunately, all accesses of the variable
do already check whether the pointer is valid.
kdbg/dbgmainwnd.cpp
kdbg/dbgmainwnd.h