Skip to content

Commit

Permalink
Merge pull request #118 from PlasticSCM/1005075-list-files-in-changes…
Browse files Browse the repository at this point in the history
…et-refresh

Apply reset to the list of changeset files when loading an invalid changeset
  • Loading branch information
SRombautsU authored May 12, 2024
2 parents a28a85d + c075fc9 commit e383899
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ void SPlasticSourceControlChangesetsWidget::OnFilesRefreshUI()
}
}
}
else
{
FileRows.Reset();
}

if (FilesListView)
{
Expand Down Expand Up @@ -1340,12 +1344,9 @@ void SPlasticSourceControlChangesetsWidget::HandleSourceControlStateChanged()
// on item selected, we could show the list of files changed in the changeset
void SPlasticSourceControlChangesetsWidget::OnSelectionChanged(FPlasticSourceControlChangesetPtr InSelectedChangeset, ESelectInfo::Type SelectInfo)
{
if (!InSelectedChangeset.IsValid())
return;

SourceSelectedChangeset = InSelectedChangeset;

if (SourceSelectedChangeset->Files.IsEmpty())
if (InSelectedChangeset.IsValid() && SourceSelectedChangeset->Files.IsEmpty())
{
// Asynchronously get the list of files changed in the changeset
RequestGetChangesetFiles(SourceSelectedChangeset);
Expand Down

0 comments on commit e383899

Please sign in to comment.