Skip to content
Permalink
Browse files

Fix restoring dialog geometry after minimize when enableAutoGeometryR…

…estore is used
  • Loading branch information
github-actions committed Jun 30, 2020
1 parent 49883a6 commit 2fc2673e04324af25d743d4a717dbb9f31cad769
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 2fc2673

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