Commit c6f6fcc9 authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller

ProjectExplorer: Fix unload project from context menu

Task-number: QTCREATORBUG-13583
Change-Id: I8587abdd7aa6f07c511384a512c8f6d1ce7be69d
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent a46307f6
......@@ -1089,7 +1089,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
connect(dd->m_runWithoutDeployAction, SIGNAL(triggered()), this, SLOT(runProjectWithoutDeploy()));
connect(dd->m_cancelBuildAction, SIGNAL(triggered()), this, SLOT(cancelBuild()));
connect(dd->m_unloadAction, SIGNAL(triggered()), this, SLOT(unloadProject()));
connect(dd->m_unloadActionContextMenu, SIGNAL(triggered()), this, SLOT(unloadProject()));
connect(dd->m_unloadActionContextMenu, SIGNAL(triggered()), this, SLOT(unloadProjectContextMenu()));
connect(dd->m_closeAllProjects, SIGNAL(triggered()), this, SLOT(closeAllProjects()));
connect(dd->m_addNewFileAction, SIGNAL(triggered()), this, SLOT(addNewFile()));
connect(dd->m_addExistingFilesAction, SIGNAL(triggered()), this, SLOT(addExistingFiles()));
......@@ -1272,6 +1272,15 @@ void ProjectExplorerPlugin::loadAction()
updateActions();
}
void ProjectExplorerPlugin::unloadProjectContextMenu()
{
if (debug)
qDebug() << "ProjectExplorerPlugin::unloadProjectContextMenu";
if (Project *p = currentProject())
unloadProject(p);
}
void ProjectExplorerPlugin::unloadProject()
{
if (debug)
......
......@@ -167,6 +167,7 @@ private slots:
void cancelBuild();
void loadAction();
void unloadProject();
void unloadProjectContextMenu();
void closeAllProjects();
void newProject();
void showSessionManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment