Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/SIL.LCModel/Infrastructure/Impl/UnitOfWorkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ void SaveOnIdle(object sender, ElapsedEventArgs e)
// Check if we are already in SaveInternal.
if (m_fInSaveInternal)
return;
// Check if we are disposed before accessing m_ui
if (IsDisposed)
return;
// Don't save if we're in the middle of something and not in the right state to Save!
if (UndoOrRedoInProgress || CurrentProcessingState != BusinessTransactionState.ReadyForBeginTask)
return; // don't start another, if for example the conflict dialog is open.
Expand Down
Loading