[qet] qet/qet: [4954] Minor fix : Elements collection widget doesn' t load automatically when the parent dock widget is detached

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4954
Author:   blacksun
Date:     2017-05-01 17:47:28 +0200 (Mon, 01 May 2017)
Log Message:
-----------
Minor fix : Elements collection widget doesn't load automatically when the parent dock widget is detached

Modified Paths:
--------------
    trunk/sources/ElementsCollection/elementscollectionwidget.cpp

Modified: trunk/sources/ElementsCollection/elementscollectionwidget.cpp
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.cpp	2017-05-01 11:42:55 UTC (rev 4953)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.cpp	2017-05-01 15:47:28 UTC (rev 4954)
@@ -130,7 +130,8 @@
 
 bool ElementsCollectionWidget::event(QEvent *event)
 {
-	if (m_first_show && event->type() == QEvent::WindowActivate) {
+	if (m_first_show && event->type() == QEvent::Show)
+	{
 		m_first_show = false;
 		QTimer::singleShot(250, this, SLOT(reload()));
 	}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/