Minor fix : Elements collection widget doesn't load automatically when the parent dock widget is detached

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4954 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-05-01 15:47:28 +00:00
parent a12198294f
commit 310ce75089

View File

@@ -130,7 +130,8 @@ void ElementsCollectionWidget::setCurrentLocation(const ElementsLocation &locati
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()));
}