Issue #1965: remove obsolete option and checkbox "Show query warnings dialog", now that warnings are always logged

This commit is contained in:
Ansgar Becker
2024-06-17 16:03:13 +02:00
parent 078f9e5df3
commit df5474c8d5
3 changed files with 9 additions and 23 deletions

View File

@ -213,7 +213,7 @@ type
asConnectCount, asRefusedCount, asSessionCreated, asDoUsageStatistics, asConnectCount, asRefusedCount, asSessionCreated, asDoUsageStatistics,
asLastUsageStatisticCall, asWheelZoom, asDisplayBars, asMySQLBinaries, asCustomSnippetsDirectory, asLastUsageStatisticCall, asWheelZoom, asDisplayBars, asMySQLBinaries, asCustomSnippetsDirectory,
asPromptSaveFileOnTabClose, asRestoreTabs, asTabCloseOnDoubleClick, asTabCloseOnMiddleClick, asTabsInMultipleLines, asTabIconsGrayscaleMode, asPromptSaveFileOnTabClose, asRestoreTabs, asTabCloseOnDoubleClick, asTabCloseOnMiddleClick, asTabsInMultipleLines, asTabIconsGrayscaleMode,
asWarnUnsafeUpdates, asQueryWarningsMessage, asQueryGridLongSortRowNum, asWarnUnsafeUpdates, asQueryGridLongSortRowNum,
asCompletionProposal, asCompletionProposalInterval, asCompletionProposalSearchOnMid, asCompletionProposalWidth, asCompletionProposalNbLinesInWindow, asAutoUppercase, asCompletionProposal, asCompletionProposalInterval, asCompletionProposalSearchOnMid, asCompletionProposalWidth, asCompletionProposalNbLinesInWindow, asAutoUppercase,
asTabsToSpaces, asFilterPanel, asAllowMultipleInstances, asFindDialogSearchHistory, asGUIFontName, asGUIFontSize, asTabsToSpaces, asFilterPanel, asAllowMultipleInstances, asFindDialogSearchHistory, asGUIFontName, asGUIFontSize,
asTheme, asIconPack, asWebSearchBaseUrl, asTheme, asIconPack, asWebSearchBaseUrl,
@ -3864,7 +3864,6 @@ begin
InitSetting(asTabsInMultipleLines, 'TabsInMultipleLines', 0, True); InitSetting(asTabsInMultipleLines, 'TabsInMultipleLines', 0, True);
InitSetting(asTabIconsGrayscaleMode, 'TabIconsGrayscaleMode', 1); InitSetting(asTabIconsGrayscaleMode, 'TabIconsGrayscaleMode', 1);
InitSetting(asWarnUnsafeUpdates, 'WarnUnsafeUpdates', 0, True); InitSetting(asWarnUnsafeUpdates, 'WarnUnsafeUpdates', 0, True);
InitSetting(asQueryWarningsMessage, 'QueryWarningsMessage', 0, True);
InitSetting(asQueryGridLongSortRowNum, 'QueryGridLongSortRowNum', 10000); InitSetting(asQueryGridLongSortRowNum, 'QueryGridLongSortRowNum', 10000);
InitSetting(asCompletionProposal, 'CompletionProposal', 0, True); InitSetting(asCompletionProposal, 'CompletionProposal', 0, True);
InitSetting(asCompletionProposalInterval, 'CompletionProposalInterval', 500); InitSetting(asCompletionProposalInterval, 'CompletionProposalInterval', 500);

View File

@ -727,7 +727,7 @@ object frmPreferences: TfrmPreferences
Width = 145 Width = 145
Height = 22 Height = 22
Style = csDropDownList Style = csDropDownList
TabOrder = 15 TabOrder = 14
OnChange = comboSQLColElementChange OnChange = comboSQLColElementChange
end end
object chkSQLBold: TCheckBox object chkSQLBold: TCheckBox
@ -736,7 +736,7 @@ object frmPreferences: TfrmPreferences
Width = 61 Width = 61
Height = 17 Height = 17
Caption = 'Bold' Caption = 'Bold'
TabOrder = 16 TabOrder = 15
OnClick = SQLFontChange OnClick = SQLFontChange
end end
object chkSQLItalic: TCheckBox object chkSQLItalic: TCheckBox
@ -745,7 +745,7 @@ object frmPreferences: TfrmPreferences
Width = 50 Width = 50
Height = 17 Height = 17
Caption = 'Italic' Caption = 'Italic'
TabOrder = 17 TabOrder = 16
OnClick = SQLFontChange OnClick = SQLFontChange
end end
object cboxSQLColForeground: TColorBox object cboxSQLColForeground: TColorBox
@ -755,7 +755,7 @@ object frmPreferences: TfrmPreferences
Height = 22 Height = 22
NoneColorColor = clNone NoneColorColor = clNone
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbCustomColor, cbPrettyNames, cbCustomColors] Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbCustomColor, cbPrettyNames, cbCustomColors]
TabOrder = 18 TabOrder = 17
OnChange = SQLFontChange OnChange = SQLFontChange
end end
object cboxSQLColBackground: TColorBox object cboxSQLColBackground: TColorBox
@ -765,7 +765,7 @@ object frmPreferences: TfrmPreferences
Height = 22 Height = 22
NoneColorColor = clNone NoneColorColor = clNone
Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbCustomColor, cbPrettyNames, cbCustomColors] Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbCustomColor, cbPrettyNames, cbCustomColors]
TabOrder = 19 TabOrder = 18
OnChange = SQLFontChange OnChange = SQLFontChange
end end
object SynMemoSQLSample: TSynMemo object SynMemoSQLSample: TSynMemo
@ -782,7 +782,7 @@ object frmPreferences: TfrmPreferences
Font.Height = -13 Font.Height = -13
Font.Name = 'Courier New' Font.Name = 'Courier New'
Font.Style = [] Font.Style = []
TabOrder = 20 TabOrder = 19
OnClick = SynMemoSQLSampleClick OnClick = SynMemoSQLSampleClick
CodeFolding.GutterShapeSize = 11 CodeFolding.GutterShapeSize = 11
CodeFolding.CollapsedLineColor = clGrayText CodeFolding.CollapsedLineColor = clGrayText
@ -810,16 +810,6 @@ object frmPreferences: TfrmPreferences
OnChange = SQLFontChange OnChange = SQLFontChange
FontSmoothing = fsmNone FontSmoothing = fsmNone
end end
object chkQueryWarningsMessage: TCheckBox
Left = 220
Top = 110
Width = 451
Height = 17
Anchors = [akLeft, akTop, akRight]
Caption = 'Show query warnings dialog'
TabOrder = 12
OnClick = Modified
end
object chkAutoUppercase: TCheckBox object chkAutoUppercase: TCheckBox
Left = 220 Left = 220
Top = 133 Top = 133
@ -827,7 +817,7 @@ object frmPreferences: TfrmPreferences
Height = 17 Height = 17
Anchors = [akLeft, akTop, akRight] Anchors = [akLeft, akTop, akRight]
Caption = 'Auto uppercase reserved words and functions' Caption = 'Auto uppercase reserved words and functions'
TabOrder = 13 TabOrder = 12
OnClick = Modified OnClick = Modified
end end
object comboEditorColorsPreset: TComboBox object comboEditorColorsPreset: TComboBox
@ -837,7 +827,7 @@ object frmPreferences: TfrmPreferences
Height = 22 Height = 22
Style = csDropDownList Style = csDropDownList
ItemIndex = 0 ItemIndex = 0
TabOrder = 14 TabOrder = 13
Text = 'Current custom settings' Text = 'Current custom settings'
OnChange = comboEditorColorsPresetChange OnChange = comboEditorColorsPresetChange
Items.Strings = ( Items.Strings = (

View File

@ -148,7 +148,6 @@ type
Label3: TLabel; Label3: TLabel;
cboxRowHighlightSameText: TColorBox; cboxRowHighlightSameText: TColorBox;
chkWheelZoom: TCheckBox; chkWheelZoom: TCheckBox;
chkQueryWarningsMessage: TCheckBox;
chkAutoUppercase: TCheckBox; chkAutoUppercase: TCheckBox;
lblTheme: TLabel; lblTheme: TLabel;
comboTheme: TComboBox; comboTheme: TComboBox;
@ -311,7 +310,6 @@ begin
AppSettings.WriteBool(asAutoReconnect, chkAutoReconnect.Checked); AppSettings.WriteBool(asAutoReconnect, chkAutoReconnect.Checked);
AppSettings.WriteBool(asAllowMultipleInstances, chkAllowMultiInstances.Checked); AppSettings.WriteBool(asAllowMultipleInstances, chkAllowMultiInstances.Checked);
AppSettings.WriteBool(asRestoreLastUsedDB, chkRestoreLastDB.Checked); AppSettings.WriteBool(asRestoreLastUsedDB, chkRestoreLastDB.Checked);
AppSettings.WriteBool(asQueryWarningsMessage, chkQueryWarningsMessage.Checked);
AppSettings.WriteString(asFontName, comboSQLFontName.Text); AppSettings.WriteString(asFontName, comboSQLFontName.Text);
AppSettings.WriteInt(asFontSize, updownSQLFontSize.Position); AppSettings.WriteInt(asFontSize, updownSQLFontSize.Position);
AppSettings.WriteInt(asTabWidth, updownSQLTabWidth.Position); AppSettings.WriteInt(asTabWidth, updownSQLTabWidth.Position);
@ -720,7 +718,6 @@ begin
comboTheme.ItemIndex := comboTheme.Items.IndexOf(AppSettings.ReadString(asTheme)); comboTheme.ItemIndex := comboTheme.Items.IndexOf(AppSettings.ReadString(asTheme));
comboIconPack.ItemIndex := comboIconPack.Items.IndexOf(AppSettings.ReadString(asIconPack)); comboIconPack.ItemIndex := comboIconPack.Items.IndexOf(AppSettings.ReadString(asIconPack));
comboWebSearchBaseUrl.Text := AppSettings.ReadString(asWebSearchBaseUrl); comboWebSearchBaseUrl.Text := AppSettings.ReadString(asWebSearchBaseUrl);
chkQueryWarningsMessage.Checked := AppSettings.ReadBool(asQueryWarningsMessage);
// Logging // Logging
updownLogLines.Position := AppSettings.ReadInt(asLogsqlnum); updownLogLines.Position := AppSettings.ReadInt(asLogsqlnum);