Commit ccbc1343545cb93acb4e3cfb02fc4bc2a4af4960
Try to fix an obscure crash in the config dialog code.
I'm not really sure how this crash could happen in the first place,
and neither can I reproduce it. However, the problem seems to be a
dangling pointer, so our SmartPointerList should cure that.
BUG: 229243
| |   |
| 21 | 21 | |
| 22 | 22 | #include <kconfigdialog.h> |
| 23 | 23 | |
| #include "SmartPointerList.h" |
| 24 | 25 | |
|
| 25 | 27 | class Amarok2ConfigDialog : public KConfigDialog |
| 26 | 28 | { |
| 27 | 29 | Q_OBJECT |
| … | … | |
| 58 | 58 | bool isDefault(); |
| 59 | 59 | |
| 60 | 60 | private: |
| QList<ConfigDialogBase*> m_pageList; |
| SmartPointerList<ConfigDialogBase> m_pageList; |
| 62 | 62 | QMap<ConfigDialogBase*, KPageWidgetItem*> m_pageMap; |
| 63 | 63 | |
| 64 | 64 | static QString s_currentPage; |