You've already forked lazarus-ccr
tvplanit: Fix compilation with Laz 1.8.4. Avoid crashes of import methods if no resource has been created.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6508 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -775,7 +775,6 @@ object MainForm: TMainForm
|
||||
Tag = 0
|
||||
end>
|
||||
Images = ImageList1
|
||||
ImagesWidth = 0
|
||||
ItemFont.Color = clWhite
|
||||
SelectedItem = -1
|
||||
SelectedItemFont.Color = clWhite
|
||||
|
@ -128,7 +128,6 @@ object Form1: TForm1
|
||||
ContainerIndex = 0
|
||||
end>
|
||||
Images = Images
|
||||
ImagesWidth = 0
|
||||
ItemFont.Color = clWhite
|
||||
ItemSpacing = 5
|
||||
SelectedItem = -1
|
||||
|
@ -7,7 +7,7 @@ object Form1: TForm1
|
||||
ClientHeight = 441
|
||||
ClientWidth = 934
|
||||
OnCreate = FormCreate
|
||||
LCLVersion = '1.9.0.0'
|
||||
LCLVersion = '1.8.4.0'
|
||||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Height = 42
|
||||
|
@ -64,7 +64,7 @@ begin
|
||||
ControlLink := TVpControlLink.Create(self);
|
||||
ControlLink.Datastore := Datastore;
|
||||
// This establishes the links to all controls that depend on Datastore.
|
||||
// Must be called when all dependent controls are created.
|
||||
// Must be called when all dependent controls have been created.
|
||||
|
||||
if Datastore.Resources.Count > 0 then
|
||||
Datastore.Resource := Datastore.Resources.Items[0];
|
||||
|
@ -303,7 +303,7 @@ Contributor(s): "/>
|
||||
</Item67>
|
||||
<Item68>
|
||||
<Filename Value="source\vpxmlds.pas"/>
|
||||
<UnitName Value="VpXmlDs"/>
|
||||
<UnitName Value="VpXmlDS"/>
|
||||
</Item68>
|
||||
<Item69>
|
||||
<Filename Value="source\vpxparsr.pas"/>
|
||||
@ -319,11 +319,11 @@ Contributor(s): "/>
|
||||
</Item71>
|
||||
<Item72>
|
||||
<Filename Value="source\vpvcard.pas"/>
|
||||
<UnitName Value="vpvcard"/>
|
||||
<UnitName Value="VpVCard"/>
|
||||
</Item72>
|
||||
<Item73>
|
||||
<Filename Value="source\vpbasedatafiles.pas"/>
|
||||
<UnitName Value="vpbasedatafiles"/>
|
||||
<UnitName Value="VpBaseDataFiles"/>
|
||||
</Item73>
|
||||
<Item74>
|
||||
<Filename Value="source\vpical.pas"/>
|
||||
|
@ -14,6 +14,7 @@
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\zeos_design"/>
|
||||
</SearchPaths>
|
||||
</CompilerOptions>
|
||||
<Description Value="Visual PlanIt datastore for ZEOS database components (Designtime package)"/>
|
||||
<Version Major="1" Release="11"/>
|
||||
<Files Count="1">
|
||||
<Item1>
|
||||
|
@ -1310,6 +1310,11 @@ var
|
||||
id: Integer;
|
||||
startTime, endTime: TDateTime;
|
||||
begin
|
||||
if ReadOnly or (not CheckCreateResource) or
|
||||
(not Assigned(DataStore)) or (not Assigned(DataStore.Resource))
|
||||
then
|
||||
Exit;
|
||||
|
||||
dlg := TOpenDialog.Create(nil);
|
||||
try
|
||||
dlg.Title := RSLoadICalTitle;
|
||||
|
@ -344,7 +344,9 @@ type
|
||||
property DrawingStyle: TVpFolderDrawingStyle read FDrawingStyle write SetDrawingStyle;
|
||||
property FolderCollection: TVpCollection read FFolders write FFolders;
|
||||
property Images: TImageList read FImages write SetImages;
|
||||
property ImagesWidth: Integer read FImagesWidth write SetImagesWidth;
|
||||
{$IF LCL_FullVersion >= 1090000}
|
||||
property ImagesWidth: Integer read FImagesWidth write SetImagesWidth default 0;
|
||||
{$ENDIF}
|
||||
property ItemFont: TFont read FItemFont write SetItemFont;
|
||||
property ItemSpacing: Integer read FItemSpacing write SetItemSpacing stored IsStoredItemSpacing;
|
||||
property ItemTheme: TVpItemTheme read FItemTheme write FItemTheme default itNoTheme;
|
||||
|
@ -904,8 +904,10 @@ var
|
||||
i: Integer;
|
||||
id: Integer;
|
||||
begin
|
||||
if ReadOnly or (not CheckCreateResource) then
|
||||
exit;
|
||||
if ReadOnly or (not CheckCreateResource) or
|
||||
(not Assigned(DataStore)) or (not Assigned(DataStore.Resource))
|
||||
then
|
||||
Exit;
|
||||
|
||||
dlg := TOpenDialog.Create(nil);
|
||||
try
|
||||
|
@ -1222,13 +1222,9 @@ var
|
||||
StartTime: TDateTime;
|
||||
EndTime: TDateTime;
|
||||
begin
|
||||
if ReadOnly then
|
||||
Exit;
|
||||
if not CheckCreateResource then
|
||||
Exit;
|
||||
if not Assigned(DataStore) then
|
||||
Exit;
|
||||
if not Assigned(DataStore.Resource) then
|
||||
if ReadOnly or (not CheckCreateResource) or
|
||||
(not Assigned(DataStore) ) or (not Assigned(DataStore.Resource))
|
||||
then
|
||||
Exit;
|
||||
|
||||
StartTime := trunc(Date) + 1 / 2; { default to 12:00 noon }
|
||||
@ -1253,6 +1249,11 @@ var
|
||||
id: Integer;
|
||||
startTime, endTime: TDateTime;
|
||||
begin
|
||||
if ReadOnly or (not CheckCreateResource) or
|
||||
(not Assigned(DataStore)) or (not Assigned(DataStore.Resource))
|
||||
then
|
||||
Exit;
|
||||
|
||||
dlg := TOpenDialog.Create(nil);
|
||||
try
|
||||
dlg.Title := RSLoadICalTitle;
|
||||
|
Reference in New Issue
Block a user