mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Avoid warning in setPointSize when Preferences are opened
The warning was introduced in 387449b751
because the initial value in the UI is 0.
See issue #1263.
This commit is contained in:
@@ -552,10 +552,12 @@ void PreferencesDialog::chooseRemoteCloneDirectory()
|
||||
|
||||
void PreferencesDialog::updatePreviewFont()
|
||||
{
|
||||
QFont textFont(ui->comboDataBrowserFont->currentText());
|
||||
textFont.setPointSize(ui->spinDataBrowserFontSize->value());
|
||||
ui->txtRegular->setFont(textFont);
|
||||
textFont.setItalic(true);
|
||||
ui->txtNull->setFont(textFont);
|
||||
ui->txtBlob->setFont(textFont);
|
||||
if (ui->spinDataBrowserFontSize->value() != 0) {
|
||||
QFont textFont(ui->comboDataBrowserFont->currentText());
|
||||
textFont.setPointSize(ui->spinDataBrowserFontSize->value());
|
||||
ui->txtRegular->setFont(textFont);
|
||||
textFont.setItalic(true);
|
||||
ui->txtNull->setFont(textFont);
|
||||
ui->txtBlob->setFont(textFont);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user