Changeset 26
- Timestamp:
- Apr 5, 2016, 11:01:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Form/UFormMain.pas
r25 r26 261 261 LastBlockPos := 0; 262 262 with Core.Project do begin 263 Core.Project.Scans.Add(TDriveScan.Create); 264 Core.Project.CurrentScan := TDriveScan(Core.Project.Scans.Last); 263 265 CurrentScan.DriveName := DriveInfo.Path; 264 266 CurrentScan.SectorCount := DriveInfo.SectorCount; … … 309 311 Core.Project.FileName := SNewProject; 310 312 Core.Project.Modified := False; 311 Core.Project.Scans.Add(TDriveScan.Create);312 Core.Project.CurrentScan := TDriveScan(Core.Project.Scans.Last);313 313 314 314 ComboBoxDrive.ItemIndex := Core.DriveList.IndexOf(Core.DriveList.FindByModel(Core.Project.DriveInfo.Model)); … … 489 489 begin 490 490 with Core do begin 491 if Assigned(Project) and Assigned(Project.CurrentScan)then begin492 AScanStart.Enabled := Project.CurrentScan.Terminated = True;493 AScanStop.Enabled := Project.CurrentScan.Terminated = False;494 AScanContinue.Enabled := (Project.CurrentScan.Terminated = True) and491 if Assigned(Project) then begin 492 AScanStart.Enabled := (Assigned(Project.CurrentScan) and (Project.CurrentScan.Terminated = True)) or not Assigned(Project.CurrentScan); 493 AScanStop.Enabled := Assigned(Project.CurrentScan) and (Project.CurrentScan.Terminated = False); 494 AScanContinue.Enabled := Assigned(Project.CurrentScan) and (Project.CurrentScan.Terminated = True) and 495 495 (Project.CurrentScan.SectorCurrent > Project.CurrentScan.SectorStart) and 496 496 (Project.CurrentScan.SectorCurrent < Project.CurrentScan.SectorEnd);
Note:
See TracChangeset
for help on using the changeset viewer.