Commit acc20b2b authored by Geoffroy Lacarriere's avatar Geoffroy Lacarriere
Browse files

Allow the ImportController to be deleted

parent a2016025
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "ImportController.h" #include "ImportController.h"
StackViewController::StackViewController( QWidget* parent, bool enableImport ) : StackViewController::StackViewController( QWidget* parent, bool enableImport ) :
QWidget( parent ), m_current( 0 ) QWidget( parent ), m_importButton( NULL ), m_current( 0 )
{ {
m_nav = new StackViewNavController( this ); m_nav = new StackViewNavController( this );
...@@ -52,7 +52,8 @@ StackViewController::StackViewController( QWidget* parent, bool enableImport ) : ...@@ -52,7 +52,8 @@ StackViewController::StackViewController( QWidget* parent, bool enableImport ) :
StackViewController::~StackViewController() StackViewController::~StackViewController()
{ {
delete m_nav; delete m_nav;
delete m_importButton; if ( m_importButton != NULL )
delete m_importButton;
delete m_layout; delete m_layout;
delete m_controllerStack; delete m_controllerStack;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment