From 3e5e4155af6e5b37f161b62596db1915358a11d6 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:19:15 +0100 Subject: [PATCH] 1.7.1 --- Sandboxie/common/my_version.h | 4 ++-- SandboxiePlus/SandMan/SandMan.cpp | 20 ++++++++++---------- SandboxiePlus/version.h | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Sandboxie/common/my_version.h b/Sandboxie/common/my_version.h index 0f1ed8de..391d4eb1 100644 --- a/Sandboxie/common/my_version.h +++ b/Sandboxie/common/my_version.h @@ -1,6 +1,6 @@ /* * Copyright 2004-2020 Sandboxie Holdings, LLC - * Copyright 2020-2022 David Xanatos, xanasoft.com + * Copyright 2020-2023 David Xanatos, xanasoft.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ #define MY_PRODUCT_NAME_STRING "Sandboxie" #define MY_COMPANY_NAME_STRING "Sandboxie-Plus.com" -#define MY_COPYRIGHT_STRING "Copyright © 2020-2022 by David Xanatos (xanasoft.com)" +#define MY_COPYRIGHT_STRING "Copyright © 2020-2023 by David Xanatos (xanasoft.com)" #define MY_COPYRIGHT_STRING_OLD "Copyright © 2004-2020 by Sandboxie Holdings, LLC" #define SANDBOXIE L"Sandboxie" diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 8159630d..da1176d2 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -578,10 +578,13 @@ void CSandMan::CreateMenus(bool bAdvanced) m_pMenuOptions->addSeparator(); m_pEditIni = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor"), tr("Edit Sandboxie.ini"), this, SLOT(OnEditIni())); m_pEditIni->setProperty("ini", "sbie"); - m_pEditIni2 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor2"), tr("Edit Templates.ini"), this, SLOT(OnEditIni())); - m_pEditIni2->setProperty("ini", "tmpl"); - m_pEditIni3 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor4"), tr("Edit Sandboxie-Plus.ini"), this, SLOT(OnEditIni())); - m_pEditIni3->setProperty("ini", "plus"); + if (bAdvanced) { + m_pEditIni2 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor2"), tr("Edit Templates.ini"), this, SLOT(OnEditIni())); + m_pEditIni2->setProperty("ini", "tmpl"); + m_pEditIni3 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor4"), tr("Edit Sandboxie-Plus.ini"), this, SLOT(OnEditIni())); + m_pEditIni3->setProperty("ini", "plus"); + } else + m_pEditIni2 = m_pEditIni3 = NULL; m_pReloadIni = m_pMenuOptions->addAction(CSandMan::GetIcon("ReloadIni"), tr("Reload configuration"), this, SLOT(OnReloadIni())); CreateHelpMenu(bAdvanced); @@ -704,10 +707,7 @@ void CSandMan::CreateOldMenus() m_pConfigLock->setData(CSettingsWindow::eConfigLock); m_pEditIni = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor"), tr("Edit Sandboxie.ini"), this, SLOT(OnEditIni())); m_pEditIni->setProperty("ini", "sbie"); - m_pEditIni2 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor2"), tr("Edit Templates.ini"), this, SLOT(OnEditIni())); - m_pEditIni2->setProperty("ini", "tmpl"); - m_pEditIni3 = m_pMenuOptions->addAction(CSandMan::GetIcon("Editor4"), tr("Edit Sandboxie-Plus.ini"), this, SLOT(OnEditIni())); - m_pEditIni3->setProperty("ini", "plus"); + m_pEditIni2 = m_pEditIni3 = NULL; m_pReloadIni = m_pMenuOptions->addAction(CSandMan::GetIcon("ReloadIni"), tr("Reload configuration"), this, SLOT(OnReloadIni())); CreateHelpMenu(false); @@ -1941,7 +1941,7 @@ void CSandMan::UpdateState() //m_pKeepTerminated->setEnabled(isConnected); m_pEditIni->setEnabled(isConnected); - m_pEditIni2->setEnabled(isConnected); + if(m_pEditIni2) m_pEditIni2->setEnabled(isConnected); m_pReloadIni->setEnabled(isConnected); if(m_pEnableMonitoring) m_pEnableMonitoring->setEnabled(isConnected); } @@ -3250,7 +3250,7 @@ void CSandMan::OnAbout() QString AboutCaption = tr( "
Version %1
" - "Copyright (c) 2020-2022 by DavidXanatos
" + "Copyright (c) 2020-2023 by DavidXanatos
" ).arg(theGUI->GetVersion()); QString CertInfo; diff --git a/SandboxiePlus/version.h b/SandboxiePlus/version.h index faac8a89..bd410553 100644 --- a/SandboxiePlus/version.h +++ b/SandboxiePlus/version.h @@ -20,5 +20,5 @@ #define MY_PRODUCT_NAME_STRING "Sandboxie-Plus" #define MY_COMPANY_NAME_STRING "sandboxie-plus.com" -#define MY_COPYRIGHT_STRING "Copyright (C) 2020-2022 by David Xanatos (xanasoft.com)" +#define MY_COPYRIGHT_STRING "Copyright (C) 2020-2023 by David Xanatos (xanasoft.com)"