Skip to content

Commit 34c0c31

Browse files
committed
Add one more try/catch for when restoring state.
1 parent b4a23f5 commit 34c0c31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/InterSpec.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4195,7 +4195,13 @@ void InterSpec::loadStateFromDb( Wt::Dbo::ptr<UserState> entry )
41954195
if( (entry->shownDisplayFeatures & UserState::kShowingDetectionSens)
41964196
&& !entry->detectionSensitivityToolUri.empty() )
41974197
{
4198-
showDetectionLimitTool( entry->detectionSensitivityToolUri );
4198+
try
4199+
{
4200+
showDetectionLimitTool( entry->detectionSensitivityToolUri );
4201+
}catch( std::exception &e )
4202+
{
4203+
cerr << "Failed to set detection limit tool state with error: " << e.what() << endl;
4204+
}
41994205
}//if( m_detectionLimitWindow )
42004206

42014207
if( (entry->shownDisplayFeatures & UserState::kShowingSimpleMda)

0 commit comments

Comments
 (0)