Added protection against empty syncs, fiddled with upgrade again

This commit is contained in:
MikeMaximus
2018-03-16 11:04:54 -06:00
parent 907e3e309a
commit 1d57bc0cc4
4 changed files with 33 additions and 4 deletions
+8
View File
@@ -517,6 +517,14 @@ Public Class mgrMonitorList
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
End If
'Sync Wipe Protection
If hshCompareFrom.Count = 0 And hshCompareTo.Count > 0 Then
If mgrCommon.ShowMessage(mgrMonitorList_WarningSyncProtection, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
RaiseEvent UpdateLog(mgrMonitorList_ErrorSyncCancel, False, ToolTipIcon.Warning, True)
Exit Sub
End If
End If
hshSyncItems = hshCompareFrom.Clone
For Each oFromItem In hshCompareFrom.Values