fix
This commit is contained in:
parent
b84beed70c
commit
d66406f904
|
@ -134,13 +134,13 @@ void CSandBox::SetBoxPaths(const QString& FilePath, const QString& RegPath, cons
|
|||
m_IpcPath = IpcPath;
|
||||
}
|
||||
|
||||
SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated)
|
||||
SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated, const QString& WorkingDir)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if ((QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier) != 0)
|
||||
return RunSandboxed(Command);
|
||||
#endif
|
||||
return m_pAPI->RunStart(m_Name, Command, Elevated);
|
||||
return m_pAPI->RunStart(m_Name, Command, Elevated, WorkingDir);
|
||||
}
|
||||
|
||||
SB_STATUS CSandBox::RunSandboxed(const QString& Command)
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
virtual int GetActiveProcessCount() const { return m_ActiveProcessCount; }
|
||||
|
||||
virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false);
|
||||
virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false, const QString& WorkingDir = QString());
|
||||
virtual SB_STATUS RunSandboxed(const QString& Command);
|
||||
virtual SB_STATUS TerminateAll();
|
||||
|
||||
|
@ -103,4 +103,4 @@ protected:
|
|||
};
|
||||
|
||||
typedef QSharedPointer<CSandBox> CSandBoxPtr;
|
||||
typedef QWeakPointer<CSandBox> CSandBoxRef;
|
||||
typedef QWeakPointer<CSandBox> CSandBoxRef;
|
||||
|
|
Loading…
Reference in New Issue