Debugger: remove updateUiOnFileListChanged

Apparently there's no reason for the connect. Also the disconnect when
the project changed was missing.

Change-Id: Ib04c8f93b532be6e4cd947df00640746721186af
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Daniel Teske
2011-12-02 12:39:54 +01:00
parent 617fd25742
commit 5b5e12ab69

View File

@@ -110,7 +110,6 @@ public slots:
void updateUiForRunConfiguration(ProjectExplorer::RunConfiguration *rc);
void updateUiForCurrentRunConfiguration();
void updateActiveLanguages();
void updateUiOnFileListChange();
void updateDockWidgetSettings();
void openMemoryEditor() { debuggerCore()->openMemoryEditor(); }
@@ -163,12 +162,6 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
addLanguage(QmlLanguage, Context(C_QMLDEBUGGER));
}
void DebuggerMainWindowPrivate::updateUiOnFileListChange()
{
if (m_previousProject)
updateUiForTarget(m_previousProject->activeTarget());
}
void DebuggerMainWindowPrivate::updateUiForProject(Project *project)
{
if (m_previousProject) {
@@ -181,8 +174,6 @@ void DebuggerMainWindowPrivate::updateUiForProject(Project *project)
updateUiForTarget(0);
return;
}
connect(project, SIGNAL(fileListChanged()),
SLOT(updateUiOnFileListChange()));
connect(project, SIGNAL(activeTargetChanged(ProjectExplorer::Target*)),
SLOT(updateUiForTarget(ProjectExplorer::Target*)));
updateUiForTarget(project->activeTarget());