We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547d158 commit e68a98dCopy full SHA for e68a98d
src/ScatterplotPlugin.cpp
@@ -784,6 +784,12 @@ void ScatterplotPlugin::updateSelection()
784
785
void ScatterplotPlugin::fromVariantMap(const QVariantMap& variantMap)
786
{
787
+ // Wait for widget to be initialized before trying to put stuff into it from the variant map.
788
+ // If not, it may try to render stuff when it's not possible and result in undefined behaviour.
789
+ while (!getScatterplotWidget().isInitialized())
790
+ {
791
+ QCoreApplication::processEvents(); // Keeps the UI responsive
792
+ }
793
ViewPlugin::fromVariantMap(variantMap);
794
795
variantMapMustContain(variantMap, "Settings");
0 commit comments