Skip to content

Commit

Permalink
Remove redundant call to setWidget(nullptr) when the same logic is al…
Browse files Browse the repository at this point in the history
…ready handled in destructor

Fixes crash on dock destruction in some scenarios
  • Loading branch information
nyalldawson committed Mar 30, 2023
1 parent 6612506 commit 97d68a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/gui/qgsdockablewidgethelper.cpp
Expand Up @@ -52,7 +52,6 @@ QgsDockableWidgetHelper::QgsDockableWidgetHelper( bool isDocked, const QString &

QgsDockableWidgetHelper::~QgsDockableWidgetHelper()
{
setWidget( nullptr );
if ( mDock )
{
mDockGeometry = mDock->geometry();
Expand Down

0 comments on commit 97d68a3

Please sign in to comment.