Skip to content
Permalink
Browse files

Fix crash when using add circular string by radius tool

  • Loading branch information
nyalldawson committed Jul 5, 2016
1 parent f9b0230 commit 9139872c9e0ba2a9c8dbacca0c367331ef889fe3
Showing with 13 additions and 5 deletions.
  1. +9 −2 python/gui/qgsuserinputdockwidget.sip
  2. +1 −2 src/gui/qgsuserinputdockwidget.cpp
  3. +3 −1 src/gui/qgsuserinputdockwidget.h
@@ -1,4 +1,9 @@

/** \ingroup gui
* @brief The QgsUserInputDockWidget class is a dock widget that shall be used to display widgets for user inputs.
* It can be used by map tools, plugins, etc.
* Several widgets can be displayed at once, they will be separated by a separator. Widgets will be either layout horizontally or vertically.
* The dock is automatically hidden if it contains no widget.
*/
class QgsUserInputDockWidget : QDockWidget
{
%TypeHeaderCode
@@ -9,7 +14,9 @@ class QgsUserInputDockWidget : QDockWidget
QgsUserInputDockWidget( QWidget* parent /TransferThis/ = 0 );
~QgsUserInputDockWidget();

//! add a widget to be displayed in the dock
/** Add a widget to be displayed in the dock.
* @param widget widget to add. Ownership is not transferred.
*/
void addUserInputWidget( QWidget* widget );

protected:
@@ -69,8 +69,7 @@ void QgsUserInputDockWidget::widgetDestroyed( QObject *obj )
{
i.value()->deleteLater();
}
mWidgetList.remove( i.key() );
++i;
i = mWidgetList.erase( i );
}
}
}
@@ -38,7 +38,9 @@ class GUI_EXPORT QgsUserInputDockWidget : public QgsDockWidget
QgsUserInputDockWidget( QWidget* parent = nullptr );
~QgsUserInputDockWidget();

//! add a widget to be displayed in the dock
/** Add a widget to be displayed in the dock.
* @param widget widget to add. Ownership is not transferred.
*/
void addUserInputWidget( QWidget* widget );

protected:

0 comments on commit 9139872

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