forked from qt-creator/qt-creator
NavigationWidget: Do not leak the factorymodel
Change-Id: Ic5c5dfd2ef9b3daab1f3e04375930fc991bff0e8 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -134,6 +134,7 @@ void NavigationWidgetPlaceHolder::currentModeAboutToChange(Core::IMode *mode)
|
||||
struct NavigationWidgetPrivate
|
||||
{
|
||||
explicit NavigationWidgetPrivate(QAction *toggleSideBarAction);
|
||||
~NavigationWidgetPrivate() { delete m_factoryModel; }
|
||||
|
||||
QList<Internal::NavigationSubWidget *> m_subWidgets;
|
||||
QHash<QShortcut *, Core::Id> m_shortcutMap;
|
||||
@@ -144,7 +145,7 @@ struct NavigationWidgetPrivate
|
||||
bool m_suppressed;
|
||||
int m_width;
|
||||
static NavigationWidget* m_instance;
|
||||
QAction *m_toggleSideBarAction;
|
||||
QAction *m_toggleSideBarAction; // does not take ownership
|
||||
};
|
||||
|
||||
NavigationWidgetPrivate::NavigationWidgetPrivate(QAction *toggleSideBarAction) :
|
||||
|
||||
Reference in New Issue
Block a user