mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 07:19:31 +02:00
git-svn-id: trunk@39082 -
This commit is contained in:
parent
642f340a49
commit
3b90468c10
31
ide/main.pp
31
ide/main.pp
@ -3067,16 +3067,19 @@ begin
|
||||
ShowContextHelpEditor(Sender);
|
||||
|
||||
ecSave:
|
||||
if (Sender is TDesigner) then begin
|
||||
GetDesignerUnit(TDesigner(Sender),ASrcEdit,AnUnitInfo);
|
||||
if (AnUnitInfo<>nil) and (AnUnitInfo.OpenEditorInfoCount > 0) then
|
||||
DoSaveEditorFile(ASrcEdit, [sfCheckAmbiguousFiles]);
|
||||
end else if (Sender is TObjectInspectorDlg) then begin
|
||||
GetObjectInspectorUnit(ASrcEdit,AnUnitInfo);
|
||||
if (AnUnitInfo<>nil) and (AnUnitInfo.OpenEditorInfoCount > 0) then
|
||||
DoSaveEditorFile(ASrcEdit, [sfCheckAmbiguousFiles]);
|
||||
end else if Sender is TSourceNotebook then
|
||||
mnuSaveClicked(Self);
|
||||
begin
|
||||
ObjectInspector1.GetActivePropertyGrid.SaveChanges;
|
||||
if (Sender is TDesigner) or (Sender is TObjectInspectorDlg) then begin
|
||||
if (Sender is TDesigner) then
|
||||
GetDesignerUnit(TDesigner(Sender),ASrcEdit,AnUnitInfo)
|
||||
else
|
||||
GetObjectInspectorUnit(ASrcEdit,AnUnitInfo);
|
||||
if (AnUnitInfo<>nil) and (AnUnitInfo.OpenEditorInfoCount > 0) then
|
||||
DoSaveEditorFile(ASrcEdit, [sfCheckAmbiguousFiles]);
|
||||
end
|
||||
else if Sender is TSourceNotebook then
|
||||
mnuSaveClicked(Self);
|
||||
end;
|
||||
|
||||
ecOpen:
|
||||
mnuOpenClicked(Self);
|
||||
@ -8180,15 +8183,17 @@ function TMainIDE.PrepareForCompile: TModalResult;
|
||||
begin
|
||||
Result:=mrOk;
|
||||
if ToolStatus=itDebugger then begin
|
||||
Result:=IDEQuestionDialog(lisStopDebugging2,
|
||||
lisStopCurrentDebuggingAndRebuildProject,
|
||||
mtConfirmation,[mrYes, mrCancel, lisNo],'');
|
||||
Result:=IDEQuestionDialog(lisStopDebugging2, lisStopCurrentDebuggingAndRebuildProject,
|
||||
mtConfirmation,[mrYes, mrCancel, lisNo],'');
|
||||
if Result<>mrYes then exit;
|
||||
|
||||
Result:=DebugBoss.DoStopProject;
|
||||
if Result<>mrOk then exit;
|
||||
end;
|
||||
|
||||
// Save the property editor value in Object Inspector
|
||||
ObjectInspector1.GetActivePropertyGrid.SaveChanges;
|
||||
|
||||
if MainBuildBoss.CompilerOnDiskChanged then
|
||||
MainBuildBoss.RescanCompilerDefines(false,false,false,false);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user