Skip to content

Commit

Permalink
Display correct conflict part in multiple conflicts resolution dialog.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Sep 11, 2023
1 parent a8b4867 commit 419c3fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/gui/ConflictDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,29 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true

itemSelected: root.existingSelected
itemPreviewUrl: root.existingPreviewUrl
itemSelected: root.conflictSelected
itemPreviewUrl: root.conflictPreviewUrl
itemVersionLabel: qsTr('Local version')
itemDateLabel: root.existingDate
itemFileSizeLabel: root.existingSize
itemDateLabel: root.conflictDate
itemFileSizeLabel: root.conflictSize

onSelectedChanged: function() {
model.existingSelected = itemSelected
model.conflictSelected = itemSelected
}
}

ConflictItemFileInfo {
Layout.fillWidth: true
Layout.fillHeight: true

itemSelected: root.conflictSelected
itemPreviewUrl: root.conflictPreviewUrl
itemSelected: root.existingSelected
itemPreviewUrl: root.existingPreviewUrl
itemVersionLabel: qsTr('Server version')
itemDateLabel: root.conflictDate
itemFileSizeLabel: root.conflictSize
itemDateLabel: root.existingDate
itemFileSizeLabel: root.existingSize

onSelectedChanged: function() {
model.conflictSelected = itemSelected
model.existingSelected = itemSelected
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/gui/ResolveConflictsDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ ApplicationWindow {

font.pixelSize: Style.fontPixelSizeResolveConflictsDialog

checked: realModel.allExistingsSelected
checked: realModel.allConflictingSelected
onToggled: function() {
realModel.selectAllExisting(checked)
realModel.selectAllConflicting(checked)
}
}

Expand All @@ -119,9 +119,9 @@ ApplicationWindow {

font.pixelSize: Style.fontPixelSizeResolveConflictsDialog

checked: realModel.allConflictingSelected
checked: realModel.allExistingsSelected
onToggled: function() {
realModel.selectAllConflicting(checked)
realModel.selectAllExisting(checked)
}
}
}
Expand Down

0 comments on commit 419c3fd

Please sign in to comment.