Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861

#rb none

[CL 6838042 by Chris Gagnon in Main branch]
This commit is contained in:
Chris Gagnon
2019-06-04 15:42:48 -04:00
1442 changed files with 166056 additions and 6434 deletions

View File

@@ -69,6 +69,12 @@ TSharedRef<SWidget> SSourceControlSubmitListRow::GenerateWidgetForColumn(const F
return SNullWidget::NullWidget;
}
FText SSourceControlSubmitWidget::SavedChangeListDescription;
SSourceControlSubmitWidget::~SSourceControlSubmitWidget()
{
SavedChangeListDescription = ChangeListDescriptionTextCtrl->GetText();
}
void SSourceControlSubmitWidget::Construct(const FArguments& InArgs)
{
@@ -133,6 +139,7 @@ void SSourceControlSubmitWidget::Construct(const FArguments& InArgs)
[
SAssignNew( ChangeListDescriptionTextCtrl, SMultiLineEditableTextBox )
.SelectAllTextWhenFocused( true )
.Text(SavedChangeListDescription)
.AutoWrapText( true )
]
]
@@ -384,6 +391,9 @@ void SSourceControlSubmitWidget::OnToggleSelectedCheckBox(ECheckBoxState InNewSt
void SSourceControlSubmitWidget::FillChangeListDescription(FChangeListDescription& OutDesc)
{
OutDesc.Description = ChangeListDescriptionTextCtrl->GetText();
ChangeListDescriptionTextCtrl->SetText(FText()); // Don't save description on Submit
OutDesc.FilesForAdd.Empty();
OutDesc.FilesForSubmit.Empty();