mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
ide: repo diff fixes
This commit is contained in:
parent
bf9b09b8af
commit
4e28164ebf
5 changed files with 12 additions and 11 deletions
|
|
@ -217,16 +217,15 @@ bool HasCrs(const String& path)
|
|||
|
||||
void DiffDlg::Write()
|
||||
{
|
||||
revert.Enable();
|
||||
if(diff.right.IsSelection()) {
|
||||
SaveFile(editfile, diff.Merge(true, HasCrs(editfile)));
|
||||
Refresh();
|
||||
revert.Enable();
|
||||
return;
|
||||
}
|
||||
if(PromptYesNo("Do you want to overwrite&[* " + DeQtf(editfile) + "] ?")) {
|
||||
SaveFile(editfile, extfile);
|
||||
Break(IDOK);
|
||||
revert.Enable();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue