Fix unsaved output setting when "Database" was selected. Also, fix disabled pulldown holding databases in such cases.

This commit is contained in:
Ansgar Becker
2010-03-25 06:48:03 +00:00
parent c0d33af4fd
commit e47a7c6158

View File

@ -226,7 +226,7 @@ begin
MainReg.WriteInteger(REGNAME_EXP_DATAHOW, comboExportData.ItemIndex); MainReg.WriteInteger(REGNAME_EXP_DATAHOW, comboExportData.ItemIndex);
// Do not remember a selected session name for the next time // Do not remember a selected session name for the next time
OutputItem := comboExportOutputType.ItemIndex; OutputItem := comboExportOutputType.ItemIndex;
if OutputItem > 2 then if OutputItem > 3 then
OutputItem := 0; OutputItem := 0;
MainReg.WriteInteger(REGNAME_EXP_OUTPUT, OutputItem); MainReg.WriteInteger(REGNAME_EXP_OUTPUT, OutputItem);
MainReg.WriteString(REGNAME_EXP_OUTFILES, OutputFiles.Text); MainReg.WriteString(REGNAME_EXP_OUTFILES, OutputFiles.Text);
@ -727,6 +727,7 @@ var
begin begin
// Target type (file, directory, ...) selected // Target type (file, directory, ...) selected
OldItem := comboExportOutputTarget.Text; OldItem := comboExportOutputTarget.Text;
comboExportOutputTarget.Enabled := True;
if Assigned(FTargetConnection) then if Assigned(FTargetConnection) then
FreeAndNil(FTargetConnection); FreeAndNil(FTargetConnection);
if comboExportOutputType.Text = OUTPUT_FILE then begin if comboExportOutputType.Text = OUTPUT_FILE then begin