Commit 81bf7cab authored by Frédéric Larue's avatar Frédéric Larue

Bug fixed in UIMainWindow::loadProjectOptions().

parent ae9818ce
......@@ -1094,7 +1094,9 @@ bool UIMainWindow::loadProjectOptions( const QString &filePath, UIProject *proje
if( !d->GetDisplayOptions() )
m_DisplayableFactoryByTypes[ d->GetTypeString() ]->allocateDisplayOptions( d );
d->GetDisplayOptions()->Get( id )->SetValueString( value );
UIParam *param = d->GetDisplayOptions()->Get( id );
if( param )
param->SetValueString( value );
}
break;
......@@ -1115,7 +1117,11 @@ bool UIMainWindow::loadProjectOptions( const QString &filePath, UIProject *proje
auto tool = ui->toolSelector->getToolByName( source );
if( tool )
tool->param->Get( id )->SetValueString( value );
{
UIParam *param = tool->param->Get( id );
if( param )
param->SetValueString( value );
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment