Skip to content

Commit

Permalink
Check for diff tool before comparing objects
Browse files Browse the repository at this point in the history
  • Loading branch information
joyfullservice committed Nov 8, 2023
1 parent 4f9247d commit 925b019
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Version Control.accda.src/forms/frmVCSConflictList.bas
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ Begin Form
Width =5040
DatasheetFontHeight =11
ItemSuffix =31
Left =435
Top =2250
Right =12315
Bottom =7335
Right =15720
Bottom =11745
RecSrcDt = Begin
0x9bf1b7f2f3a6e540
End
Expand Down Expand Up @@ -481,6 +479,13 @@ Private Sub txtDiff_Click()
cboResolution.SetFocus
DoEvents

' Make sure we have a valid tool defined
If Not (modObjects.Diff.HasValidCompareTool) Then
MsgBox2 "No Compare Tool Defined", _
"Please specify a compare tool (i.e. WinMerge, VSCode) in the add-in options.", , vbExclamation
Exit Sub
End If

' Make sure we have a file name to compare
strFileName = Nz(txtFileName)
If strFileName = vbNullString Then
Expand Down
2 changes: 1 addition & 1 deletion Version Control.accda.src/modules/clsViewDiff.cls
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ End Function
' : valid for use.
'---------------------------------------------------------------------------------------
'
Private Function HasValidCompareTool() As Boolean
Public Function HasValidCompareTool() As Boolean

' Check the current option for compare tool.
Select Case Me.ToolName
Expand Down

0 comments on commit 925b019

Please sign in to comment.