Skip to content

Commit

Permalink
mainform, always close dataprocess when selected website changed
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Jul 27, 2015
1 parent 30264c2 commit 930395b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mangadownloader/forms/frmMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2130,9 +2130,12 @@ procedure TMainForm.cbSelectMangaChange(Sender: TObject);
if currentWebsite <> cbSelectManga.Items[cbSelectManga.ItemIndex] then
begin
currentWebsite := cbSelectManga.Items[cbSelectManga.ItemIndex];
if dataProcess = nil then
dataProcess := TDBDataProcess.Create;
vtMangaList.Clear;
if dataProcess = nil then
dataProcess := TDBDataProcess.Create
else
if dataProcess.Connected then
dataProcess.Close;
lbMode.Caption := Format(RS_ModeAll, [0]);
if DataFileExist(cbSelectManga.Items[cbSelectManga.ItemIndex]) then
begin
Expand Down

0 comments on commit 930395b

Please sign in to comment.