Skip to content
Permalink
Browse files

Fix restoring dialog geometry after minimize when enableAutoGeometryR…

…estore is used
  • Loading branch information
uclaros authored and nyalldawson committed Jun 28, 2020
1 parent 9e1edb0 commit e30c4c4acff5b3cce7a4d883f1a53c4dc506e2f4
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgswidgetstatehelper_p.cpp
@@ -28,7 +28,9 @@ QgsWidgetStateHelper::QgsWidgetStateHelper( QObject *parent ) : QObject( parent

bool QgsWidgetStateHelper::eventFilter( QObject *object, QEvent *event )
{
if ( event->type() == QEvent::Close || event->type() == QEvent::Destroy )
if ( event->type() == QEvent::Close ||
event->type() == QEvent::Destroy ||
event->type() == QEvent::Hide )
{
QWidget *widget = qobject_cast<QWidget *>( object );

0 comments on commit e30c4c4

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