Update SandMan.cpp

This commit is contained in:
DavidXanatos 2023-02-01 22:57:23 +01:00
parent b03089969b
commit bf11630f2e
1 changed files with 3 additions and 3 deletions

View File

@ -2787,11 +2787,11 @@ void CSandMan::OnEditIni()
bool bPlus;
if (bPlus = (ini == "plus"))
{
IniPath = QString(theConf->GetConfigDir() + "/Sandboxie-Plus.ini").replace("/", "\\").toStdWString();
IniPath = L"\"" + QString(theConf->GetConfigDir() + "/Sandboxie-Plus.ini").replace("/", "\\").toStdWString() + L"\"";
}
else if (ini == "tmpl")
{
IniPath = (theAPI->GetSbiePath() + "\\Templates.ini").toStdWString();
IniPath = L"\"" + (theAPI->GetSbiePath() + "\\Templates.ini").toStdWString() + L"\"";
if (theConf->GetBool("Options/NoEditWarn", true)) {
bool State = false;
@ -2806,7 +2806,7 @@ void CSandMan::OnEditIni()
}
else //if (ini == "sbie")
{
IniPath = theAPI->GetIniPath().toStdWString();
IniPath = L"\"" + theAPI->GetIniPath().toStdWString() + L"\"";
if (theConf->GetBool("Options/NoEditInfo", true)) {
bool State = false;