mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Do not *store* asExportSQLOutput setting when it was a server, so the next time we have the previously selected target again. Fixes issue #3435.
This commit is contained in:
@ -11,7 +11,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Windows, SysUtils, Classes, Controls, Forms, StdCtrls, ComCtrls, Buttons, Dialogs, StdActns,
|
Windows, SysUtils, Classes, Controls, Forms, StdCtrls, ComCtrls, Buttons, Dialogs, StdActns,
|
||||||
VirtualTrees, ExtCtrls, Graphics, SynRegExpr, Math, Generics.Collections, extra_controls,
|
VirtualTrees, ExtCtrls, Graphics, SynRegExpr, Math, Generics.Collections, extra_controls,
|
||||||
dbconnection, helpers, Menus, gnugettext, DateUtils, System.Zip, System.UITypes;
|
dbconnection, helpers, Menus, gnugettext, DateUtils, System.Zip, System.UITypes, StrUtils;
|
||||||
|
|
||||||
type
|
type
|
||||||
TToolMode = (tmMaintenance, tmFind, tmSQLExport, tmBulkTableEdit);
|
TToolMode = (tmMaintenance, tmFind, tmSQLExport, tmBulkTableEdit);
|
||||||
@ -294,7 +294,7 @@ begin
|
|||||||
idx := AppSettings.ReadInt(asExportSQLOutput);
|
idx := AppSettings.ReadInt(asExportSQLOutput);
|
||||||
if (idx = -1)
|
if (idx = -1)
|
||||||
or (idx >= comboExportOutputType.Items.Count)
|
or (idx >= comboExportOutputType.Items.Count)
|
||||||
or (copy(comboExportOutputType.Items[idx], 1, Length(OUTPUT_SERVER)) = OUTPUT_SERVER)
|
or StartsStr(OUTPUT_SERVER, comboExportOutputType.Items[idx])
|
||||||
then idx := 0;
|
then idx := 0;
|
||||||
comboExportOutputType.ItemIndex := idx;
|
comboExportOutputType.ItemIndex := idx;
|
||||||
comboExportOutputType.OnChange(Sender);
|
comboExportOutputType.OnChange(Sender);
|
||||||
@ -341,6 +341,7 @@ begin
|
|||||||
AppSettings.WriteBool(asExportSQLCreateDatabases, chkExportDatabasesCreate.Checked);
|
AppSettings.WriteBool(asExportSQLCreateDatabases, chkExportDatabasesCreate.Checked);
|
||||||
AppSettings.WriteBool(asExportSQLCreateTables, chkExportTablesCreate.Checked);
|
AppSettings.WriteBool(asExportSQLCreateTables, chkExportTablesCreate.Checked);
|
||||||
AppSettings.WriteInt(asExportSQLDataHow, comboExportData.ItemIndex);
|
AppSettings.WriteInt(asExportSQLDataHow, comboExportData.ItemIndex);
|
||||||
|
if not StartsStr(OUTPUT_SERVER, comboExportOutputType.Text) then
|
||||||
AppSettings.WriteInt(asExportSQLOutput, comboExportOutputType.ItemIndex);
|
AppSettings.WriteInt(asExportSQLOutput, comboExportOutputType.ItemIndex);
|
||||||
|
|
||||||
if comboExportOutputType.Text = OUTPUT_FILE then begin
|
if comboExportOutputType.Text = OUTPUT_FILE then begin
|
||||||
|
Reference in New Issue
Block a user