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

Allow the ImportController to be deleted

parent a2016025
......@@ -24,7 +24,7 @@
#include "ImportController.h"
StackViewController::StackViewController( QWidget* parent, bool enableImport ) :
QWidget( parent ), m_current( 0 )
QWidget( parent ), m_importButton( NULL ), m_current( 0 )
{
m_nav = new StackViewNavController( this );
......@@ -52,6 +52,7 @@ StackViewController::StackViewController( QWidget* parent, bool enableImport ) :
StackViewController::~StackViewController()
{
delete m_nav;
if ( m_importButton != NULL )
delete m_importButton;
delete m_layout;
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