Skip to content

Commit

Permalink
1.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Dec 18, 2024
1 parent 850c845 commit 488905b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down
8 changes: 5 additions & 3 deletions SandboxiePlus/SandMan/Windows/OptionsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 6 additions & 4 deletions SandboxiePlus/SandMan/Windows/SettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,17 +666,19 @@ 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"
}

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();
Expand Down

0 comments on commit 488905b

Please sign in to comment.