Skip to content

Commit

Permalink
Fixed issue when double clicking on document in documents list result…
Browse files Browse the repository at this point in the history
…s in a PDF being opened for a different document.

Signed-off-by: Robert F. Frasca <rffrasca@gmail.com>
  • Loading branch information
rffrasca committed Dec 28, 2023
1 parent 3066f16 commit a98a78c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PDFKeeper.Presentation/Views/MainView.vb
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ Public Class MainView
If viewModel.CurrentDocumentId > 0 Then
For Each row In DocumentsDataGridView.Rows
If row.Cells(1).Value = viewModel.CurrentDocumentId Then
row.Selected = True
DocumentsDataGridView.FirstDisplayedScrollingRowIndex = row.Index
DocumentsDataGridView.CurrentCell = DocumentsDataGridView.Rows(row.Index).Cells(1)
End If
Next
End If
Expand Down

0 comments on commit a98a78c

Please sign in to comment.