This commit is contained in:
DavidXanatos 2022-05-29 08:07:17 +02:00
parent b3946f08f5
commit 1a632430e7
3 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [1.1.1 / 5.56.1] - 2022-30-05
### Added
- Compat templates can now be opened [#1891](https://github.com/sandboxie-plus/Sandboxie/issues/1891)
### Changed
- improved implementation of the PreferExternalManifest option
@ -16,6 +19,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed issues with the new delete mechanism with "SeparateUserFolders=y"
- fixed credential issue [#1770](https://github.com/sandboxie-plus/Sandboxie/pull/1770)
- fixed force process priorities [#1883](https://github.com/sandboxie-plus/Sandboxie/issues/1883)
- fixed issues with the new delete V2 mechanism
- fixed issue with the win 11 emenu on older windows builds [1877](https://github.com/sandboxie-plus/Sandboxie/issues/1877)

View File

@ -6,6 +6,7 @@
#include "Helpers/WinAdmin.h"
#include "../QSbieAPI/Sandboxie/SbieTemplates.h"
#include "../QSbieAPI/SbieUtils.h"
#include "OptionsWindow.h"
QSize CustomTabStyle::sizeFromContents(ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const {
@ -156,6 +157,7 @@ CSettingsWindow::CSettingsWindow(QWidget *parent)
ui.chkNoCompat->setChecked(!theConf->GetBool("Options/AutoRunSoftCompat", true));
connect(ui.treeCompat, SIGNAL(itemClicked(QTreeWidgetItem*, int)), this, SLOT(OnTemplateClicked(QTreeWidgetItem*, int)));
connect(ui.treeCompat, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)), this, SLOT(OnTemplateDoubleClicked(QTreeWidgetItem*, int)));
connect(ui.lblSupport, SIGNAL(linkActivated(const QString&)), theGUI, SLOT(OpenUrl(const QString&)));
connect(ui.lblSupportCert, SIGNAL(linkActivated(const QString&)), theGUI, SLOT(OpenUrl(const QString&)));
@ -830,6 +832,14 @@ void CSettingsWindow::OnTemplateClicked(QTreeWidgetItem* pItem, int Column)
m_CompatChanged = true;
}
void CSettingsWindow::OnTemplateDoubleClicked(QTreeWidgetItem* pItem, int Column)
{
QSharedPointer<CSbieIni> pTemplate = QSharedPointer<CSbieIni>(new CSbieIni("Template_" + pItem->data(0, Qt::UserRole).toString(), theAPI));
COptionsWindow OptionsWindow(pTemplate, pItem->text(1));
OptionsWindow.exec();
}
void CSettingsWindow::OnAddCompat()
{
QTreeWidgetItem* pItem = ui.treeCompat->currentItem();

View File

@ -56,6 +56,7 @@ private slots:
void OnDelWarnProg();
void OnTemplateClicked(QTreeWidgetItem* pItem, int Column);
void OnTemplateDoubleClicked(QTreeWidgetItem* pItem, int Column);
void OnAddCompat();
void OnDelCompat();