Navigation Menu

Skip to content

Commit

Permalink
Cleanup button box when reinitializing attribute form
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 21, 2014
1 parent eea0451 commit febe37d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit febe37d

Please sign in to comment.