Skip to content
Permalink
Browse files

Cleanup button box when reinitializing attribute form

  • Loading branch information
m-kuhn committed Sep 21, 2014
1 parent eea0451 commit febe37dece4cffd6de18ec2cd3e3cd19aa329149
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsattributeform.cpp
@@ -309,7 +309,11 @@ void QgsAttributeForm::synchronizeEnabledState()
void QgsAttributeForm::init()
{
QApplication::setOverrideCursor( QCursor( Qt::WaitCursor ) );

// Cleanup of any previously shown widget, we start from scratch
QWidget* formWidget = 0;
delete mButtonBox;
mButtonBox = 0;

qDeleteAll( mWidgets );
mWidgets.clear();

0 comments on commit febe37d

Please sign in to comment.
You can’t perform that action at this time.