1.12.0
This commit is contained in:
parent
2a87d0bfc8
commit
c23226db79
|
@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
- Note: press the panic button hot key 3 times with less then 1 second between clicks to Terminate All with NO exceptions
|
||||
- added Customizable global hotkey that toggles the state of "pause forced programs" [#2441](https://github.com/sandboxie-plus/Sandboxie/issues/2441)
|
||||
- added Warn or prevent broad "forced folder" settings [#650](https://github.com/sandboxie-plus/Sandboxie/issues/650)
|
||||
- added CheckExpectFile function to Plus [#768](https://github.com/sandboxie-plus/Sandboxie/issues/768)
|
||||
|
||||
### Changed
|
||||
- improved suspend process ahndling [#3375](https://github.com/sandboxie-plus/Sandboxie/issues/3375)
|
||||
|
|
|
@ -270,7 +270,19 @@ void COptionsWindow::LoadFolders()
|
|||
|
||||
void COptionsWindow::OnFolderChanged()
|
||||
{
|
||||
//CPathEdit* pEdit = (CPathEdit*)sender();
|
||||
CPathEdit* pEdit = (CPathEdit*)sender();
|
||||
|
||||
QSharedPointer<CSbieIni> pTemplateSettings = QSharedPointer<CSbieIni>(new CSbieIni("TemplateSettings", m_pBox->GetAPI()));
|
||||
|
||||
QString Folder = pEdit->property("key").toString();
|
||||
QString Test = pTemplateSettings->GetText(Folder + ":ExpectFile", "", false, true, true);
|
||||
QString Path = pEdit->GetText();
|
||||
if (!Test.isEmpty() && !Path.isEmpty())
|
||||
{
|
||||
if (!QFile::exists(Path + "\\" + Test))
|
||||
QMessageBox::warning(this, "Sandboxie-Plus", tr("An alternate location for '%1'\nshould contain the following file:\n\n%2\n\nThe selected location does not contain this file.\nPlease select a folder which contains this file.").arg(Folder).arg(Test));
|
||||
}
|
||||
|
||||
m_FoldersChanged = true;
|
||||
OnOptChanged();
|
||||
}
|
||||
|
@ -292,6 +304,7 @@ void COptionsWindow::ShowFolders()
|
|||
pEdit->SetWindowsPaths();
|
||||
pEdit->SetDefault(pTemplateSettings->GetText(Folder, "", false, true, true));
|
||||
pEdit->SetText(pTemplateSettings->GetText(Folder + "." + UserName));
|
||||
pEdit->setProperty("key", Folder);
|
||||
connect(pEdit, SIGNAL(textChanged(const QString&)), this, SLOT(OnFolderChanged()));
|
||||
ui.treeFolders->setItemWidget(pItem, 1, pEdit);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue