mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
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:
@@ -130,7 +130,8 @@ void ElementsCollectionWidget::setCurrentLocation(const ElementsLocation &locati
|
|||||||
|
|
||||||
bool ElementsCollectionWidget::event(QEvent *event)
|
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;
|
m_first_show = false;
|
||||||
QTimer::singleShot(250, this, SLOT(reload()));
|
QTimer::singleShot(250, this, SLOT(reload()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user