mirror of https://gitlab.com/basile.b/dexed.git
fix, (temp) clipboard issue on doc that are reloaded from previous session
This commit is contained in:
parent
144fd79788
commit
0d62c26613
|
@ -189,6 +189,11 @@ type
|
|||
procedure ApplicationProperties1Exception(Sender: TObject; E: Exception);
|
||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of string);
|
||||
|
||||
protected
|
||||
|
||||
procedure DoShow; override;
|
||||
|
||||
private
|
||||
|
||||
fDoc: TCESynMemo;
|
||||
|
@ -218,6 +223,7 @@ type
|
|||
fDubProjWidg: TCEDubProjectEditorWidget;
|
||||
fGdbWidg: TCEGdbWidget;
|
||||
|
||||
fFirstShown: boolean;
|
||||
fProjFromCommandLine: boolean;
|
||||
fInitialized: boolean;
|
||||
fRunnableSw: string;
|
||||
|
@ -648,9 +654,6 @@ begin
|
|||
//
|
||||
getCMdParams;
|
||||
if fNativeProject = nil then newNativeProj;
|
||||
|
||||
if fAppliOpts.reloadLastDocuments then
|
||||
LoadLastDocsAndProj;
|
||||
//
|
||||
fInitialized := true;
|
||||
end;
|
||||
|
@ -1036,6 +1039,19 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TCEMainForm.DoShow;
|
||||
begin
|
||||
inherited;
|
||||
// TODO-cbetterfix: clipboard doesn't work first time it's used on a reloaded doc.
|
||||
// see: http://forum.lazarus.freepascal.org/index.php/topic,30616.0.htm
|
||||
if (not fFirstShown) then
|
||||
begin
|
||||
if fAppliOpts.reloadLastDocuments then
|
||||
LoadLastDocsAndProj;
|
||||
fFirstShown := true;
|
||||
end;
|
||||
end;
|
||||
|
||||
destructor TCEMainForm.destroy;
|
||||
begin
|
||||
SaveSettings;
|
||||
|
|
Loading…
Reference in New Issue