This commit is contained in:
DavidXanatos 2022-10-28 19:30:18 +02:00
parent 8d80d03bf5
commit 1cb0cc0e1f
5 changed files with 30 additions and 11 deletions

View File

@ -5,6 +5,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [1.5.3 / 5.60.3] - 2022-10-??
### Fixed
- fixed issue with box options [#2400](https://github.com/sandboxie-plus/Sandboxie/issues/2400)
## [1.5.2 / 5.60.2] - 2022-10-??
### Changed

View File

@ -21,8 +21,8 @@
#ifndef _MY_VERSION_H
#define _MY_VERSION_H
#define MY_VERSION_BINARY 5,60,2
#define MY_VERSION_STRING "5.60.2"
#define MY_VERSION_BINARY 5,60,3
#define MY_VERSION_STRING "5.60.3"
#define MY_ABI_VERSION 0x56000
// These #defines are used by either Resource Compiler or NSIS installer

View File

@ -42,6 +42,7 @@ void COptionsWindow::LoadForced()
LoadForcedTmpl();
LoadBreakoutTmpl();
m_ForcedChanged = false;
}
@ -57,13 +58,6 @@ void COptionsWindow::LoadForcedTmpl(bool bUpdate)
foreach(const QString& Value, m_pBox->GetTextListTmpl("ForceFolder", Template))
AddForcedEntry(Value, (int)ePath, false, Template);
foreach(const QString& Value, m_pBox->GetTextListTmpl("BreakoutProcess", Template))
AddBreakoutEntry(Value, (int)eProcess, false, Template);
foreach(const QString& Value, m_pBox->GetTextListTmpl("BreakoutFolder", Template))
AddBreakoutEntry(Value, (int)ePath, false, Template);
}
}
else if (bUpdate)
@ -78,7 +72,24 @@ void COptionsWindow::LoadForcedTmpl(bool bUpdate)
}
i++;
}
}
}
void COptionsWindow::LoadBreakoutTmpl(bool bUpdate)
{
if (ui.chkShowBreakoutTmpl->isChecked())
{
foreach(const QString& Template, m_pBox->GetTemplates())
{
foreach(const QString& Value, m_pBox->GetTextListTmpl("BreakoutProcess", Template))
AddBreakoutEntry(Value, (int)eProcess, false, Template);
foreach(const QString& Value, m_pBox->GetTextListTmpl("BreakoutFolder", Template))
AddBreakoutEntry(Value, (int)ePath, false, Template);
}
}
else if (bUpdate)
{
for (int i = 0; i < ui.treeBreakout->topLevelItemCount(); )
{
QTreeWidgetItem* pItem = ui.treeBreakout->topLevelItem(i);

View File

@ -76,7 +76,7 @@ private slots:
void OnBreakoutBrowse();
void OnBreakoutDir();
void OnDelBreakout();
void OnShowBreakoutTmpl() { LoadForcedTmpl(true); }
void OnShowBreakoutTmpl() { LoadBreakoutTmpl(true); }
void OnAddLingering();
void OnDelStopProg();

View File

@ -2,7 +2,7 @@
#define VERSION_MJR 1
#define VERSION_MIN 5
#define VERSION_REV 2
#define VERSION_REV 3
#define VERSION_UPD 0
#ifndef STR