diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 985204ea..a76485c3 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -691,7 +691,7 @@ void CSandMan::CreateOldMenus() m_pSetupWizard = NULL; //m_pUpdateCore = NULL; } - + m_pRestart = m_pMenuFile->addAction(CSandMan::GetIcon("Exit"), tr("Restart As Admin"), this, SLOT(OnRestartAsAdmin())); m_pExit = m_pMenuFile->addAction(CSandMan::GetIcon("Exit"), tr("Exit"), this, SLOT(OnExit())); m_pMenuView = m_pMenuBar->addMenu(tr("&View")); diff --git a/SandboxiePlus/SandMan/SandMan.h b/SandboxiePlus/SandMan/SandMan.h index 9a31fab7..1fe82e0c 100644 --- a/SandboxiePlus/SandMan/SandMan.h +++ b/SandboxiePlus/SandMan/SandMan.h @@ -279,6 +279,8 @@ private slots: void CheckForUpdates(bool bManual = true); + void OnRestartAsAdmin(); + void OnExit(); void OnHelp(); void OnAbout(); @@ -366,6 +368,7 @@ private: QHBoxLayout* m_pMenuLayout; QMenu* m_pMenuFile; + QAction* m_pRestart; QAction* m_pRunBoxed; QAction* m_pNewBox; QAction* m_pNewGroup;