From 488905bcd110c6f982e8eb28896b61b6dd5c1935 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:49:08 +0100 Subject: [PATCH] 1.15.4 --- CHANGELOG.md | 1 + SandboxiePlus/SandMan/Windows/OptionsWindow.cpp | 8 +++++--- SandboxiePlus/SandMan/Windows/SettingsWindow.cpp | 10 ++++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fceef80..72f9985c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed BSOD "SYSTEM_SERVICE_EXCEPTION (3b)" when opening a DLL from AlertFolder using x64dbg [#4421](https://github.com/sandboxie-plus/Sandboxie/issues/4421) - fixed BSoD "CRITICAL_PROCESS_DIED" when terminate all sandboxed programs [#1316](https://github.com/sandboxie-plus/Sandboxie/issues/1316) - Note: we now terminate boxed processes individually instead of terminating using the job object, unless "TerminateJobObject=y" is set +- fixed Ini Editor Font Selection Not Working After INI Highlighting Feature Added [#4429](https://github.com/sandboxie-plus/Sandboxie/issues/4429) diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp index f8cb66b3..1d62c37a 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.cpp @@ -684,9 +684,11 @@ void COptionsWindow::ApplyIniEditFont() { QFont font; // defaults to application font auto fontName = theConf->GetString("UIConfig/IniFont", "").trimmed(); - if (!fontName.isEmpty()) bool dummy = font.fromString(fontName); // ignore fromString() fail - //ui.txtIniSection->setFont(font); - m_pCodeEdit->setFont(font); + if (!fontName.isEmpty()) { + font.fromString(fontName); // ignore fromString() fail + //ui.txtIniSection->setFont(font); + m_pCodeEdit->SetFont(font); + } } void COptionsWindow::OnSetTree() diff --git a/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp b/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp index ecd72d06..b9c141e6 100644 --- a/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp +++ b/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp @@ -666,9 +666,11 @@ void CSettingsWindow::ApplyIniEditFont() { QFont font; // defaults to application font auto fontName = theConf->GetString("UIConfig/IniFont", "").trimmed(); - if (!fontName.isEmpty()) bool dummy = font.fromString(fontName); // ignore fromString() fail - //ui.txtIniSection->setFont(font); - m_pCodeEdit->setFont(font); + if (!fontName.isEmpty()) { + font.fromString(fontName); // ignore fromString() fail + //ui.txtIniSection->setFont(font); + m_pCodeEdit->SetFont(font); + } ui.lblIniEditFont->setText(tr("%0, %1 pt").arg(font.family()).arg(font.pointSizeF())); // tr: example: "Calibri, 9.5 pt" } @@ -676,7 +678,7 @@ void CSettingsWindow::OnSelectIniEditFont() { bool ok; //auto newFont = QFontDialog::getFont(&ok, ui.txtIniSection->font(), this); - auto newFont = QFontDialog::getFont(&ok, m_pCodeEdit->font(), this); + auto newFont = QFontDialog::getFont(&ok, m_pCodeEdit->GetFont(), this); if (!ok) return; theConf->SetValue("UIConfig/IniFont", newFont.toString()); ApplyIniEditFont();