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 ApplicationProperties1Exception(Sender: TObject; E: Exception);
|
||||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of string);
|
procedure FormDropFiles(Sender: TObject; const FileNames: array of string);
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
procedure DoShow; override;
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
fDoc: TCESynMemo;
|
fDoc: TCESynMemo;
|
||||||
|
@ -218,6 +223,7 @@ type
|
||||||
fDubProjWidg: TCEDubProjectEditorWidget;
|
fDubProjWidg: TCEDubProjectEditorWidget;
|
||||||
fGdbWidg: TCEGdbWidget;
|
fGdbWidg: TCEGdbWidget;
|
||||||
|
|
||||||
|
fFirstShown: boolean;
|
||||||
fProjFromCommandLine: boolean;
|
fProjFromCommandLine: boolean;
|
||||||
fInitialized: boolean;
|
fInitialized: boolean;
|
||||||
fRunnableSw: string;
|
fRunnableSw: string;
|
||||||
|
@ -648,9 +654,6 @@ begin
|
||||||
//
|
//
|
||||||
getCMdParams;
|
getCMdParams;
|
||||||
if fNativeProject = nil then newNativeProj;
|
if fNativeProject = nil then newNativeProj;
|
||||||
|
|
||||||
if fAppliOpts.reloadLastDocuments then
|
|
||||||
LoadLastDocsAndProj;
|
|
||||||
//
|
//
|
||||||
fInitialized := true;
|
fInitialized := true;
|
||||||
end;
|
end;
|
||||||
|
@ -1036,6 +1039,19 @@ begin
|
||||||
end;
|
end;
|
||||||
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;
|
destructor TCEMainForm.destroy;
|
||||||
begin
|
begin
|
||||||
SaveSettings;
|
SaveSettings;
|
||||||
|
|
Loading…
Reference in New Issue