Changeset 16 for trunk/Forms
- Timestamp:
- Mar 19, 2013, 9:43:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.