Changeset 16
- Timestamp:
- Mar 19, 2013, 9:43:12 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FioInfo.lpi
r12 r16 49 49 <Linking> 50 50 <Debugging> 51 <UseHeaptrc Value="True"/>52 51 <UseExternalDbgSyms Value="True"/> 53 52 </Debugging> -
trunk/Forms/UFormMain.pas
r15 r16 85 85 begin 86 86 Core.SelectedAccountIndex := ComboBoxAccounts.ItemIndex; 87 if ComboBoxAccounts.ItemIndex <> -1 then88 Core.CurrentAccount := TAccount(Core.Accounts[ComboBoxAccounts.ItemIndex])89 else Core.CurrentAccount := nil;90 87 LoadInterface; 91 88 end; … … 143 140 Core.Accounts.LoadToStrings(ComboBoxAccounts.Items); 144 141 if (Core.SelectedAccountIndex >= 0) and 145 (Core.SelectedAccountIndex < ComboBoxAccounts.Items.Count) then 142 (Core.SelectedAccountIndex < ComboBoxAccounts.Items.Count) then begin 146 143 ComboBoxAccounts.ItemIndex := Core.SelectedAccountIndex; 144 end; 145 if (ComboBoxAccounts.Items.Count > 0) and (ComboBoxAccounts.ItemIndex = -1) then 146 ComboBoxAccounts.ItemIndex := 0; 147 if ComboBoxAccounts.ItemIndex <> -1 then 148 Core.CurrentAccount := TAccount(Core.Accounts[ComboBoxAccounts.ItemIndex]) 149 else Core.CurrentAccount := nil; 147 150 DateEditStart.Date := Core.ReportTimeFrom; 148 151 DateEditTo.Date := Core.ReportTimeTo; … … 153 156 ButtonMonthly.Enabled := Assigned(Core.CurrentAccount); 154 157 ButtonNew.Enabled := Assigned(Core.CurrentAccount); 158 ButtonGetState.Enabled := Assigned(Core.CurrentAccount); 155 159 Core.ADownloadInterval.Enabled := Assigned(Core.CurrentAccount); 156 160 Core.ADownloadMonthly.Enabled := Assigned(Core.CurrentAccount); -
trunk/Packages/TemplateGenerics/Generic/GenericListObject.inc
r6 r16 67 67 procedure TGListObject.Put(Index: TGListIndex; const AValue: TGListItem); 68 68 begin 69 if OwnsObjects and (FItems[Index] <> AValue) then FItems[Index].Free;69 if OwnsObjects and (FItems[Index] <> AValue) and Assigned(FItems[Index]) then FItems[Index].Free; 70 70 inherited Put(Index, AValue); 71 71 end; -
trunk/UCore.pas
r15 r16 259 259 Mem := TMemoryStream.Create; 260 260 try 261 FioAPI.Format := DataFormat;261 FioAPI.Format := dfXML; 262 262 FioAPI.Token := Account.Token; 263 263 Account.Time := Now; … … 276 276 Node2 := Node.FindNode('closingBalance'); 277 277 if Assigned(Node2) then 278 Account.Balance := StrToFloat(Node2.TextContent); 278 Account.Balance := StrToFloat(StringReplace(Node2.TextContent, '.', 279 DefaultFormatSettings.DecimalSeparator, [rfReplaceAll])); 279 280 end else begin 280 281 Account.Number := '';
Note:
See TracChangeset
for help on using the changeset viewer.