# HG changeset patch # User lbajardsilogic # Date 1179315177 0 # Node ID 51b1cbf1a7d71af667bec25eca6a8d47be972686 # Parent 81e058c2be5122a7b6a5c6d3f6fd82bb9ce3f4b4 verify the widget exists before deleting it in removeItem diff -r 81e058c2be51 -r 51b1cbf1a7d7 widgets/AdvancedToolBox.cpp --- a/widgets/AdvancedToolBox.cpp Wed May 16 11:30:26 2007 +0000 +++ b/widgets/AdvancedToolBox.cpp Wed May 16 11:32:57 2007 +0000 @@ -106,6 +106,8 @@ } void AdvancedToolBox::removeItem( int index ){ - delete m_splitter->widget(index); + QWidget *w = m_splitter->widget(index); + if (w) + delete w; }