QmlDesigner.propertyEditor: fixes glitch in caching

This commit is contained in:
Thomas Hartmann
2010-03-01 08:17:35 +01:00
parent f1c8dc6521
commit df6b225dc1

View File

@@ -922,6 +922,9 @@ void WidgetLoader::setSource(const QUrl &source)
m_widget = 0; m_widget = 0;
} }
foreach (QWidget *cachedWidget, m_cachedWidgets)
cachedWidget->hide();
m_source = source; m_source = source;
if (m_source.isEmpty()) { if (m_source.isEmpty()) {
emit sourceChanged(); emit sourceChanged();