Commit cd98f05f authored by Daniel Teske's avatar Daniel Teske
Browse files

Simply SessionFile::m_failedProjects handling



Remove the functions and access the variable directly.

Change-Id: Ic35d971a618299b6ccf26f9fb0d76de498268cc1
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 742656df
......@@ -86,9 +86,6 @@ class SessionFile : QObject
public:
SessionFile();
QStringList failedProjectFileNames() const;
void clearFailedProjectFileNames();
public slots:
void sessionLoadingProgress();
......@@ -121,16 +118,6 @@ SessionFile::SessionFile()
{
}
QStringList SessionFile::failedProjectFileNames() const
{
return m_failedProjects;
}
void SessionFile::clearFailedProjectFileNames()
{
m_failedProjects.clear();
}
/*!
\class ProjectExplorer::SessionManager
......@@ -509,7 +496,7 @@ bool SessionManager::loadImpl(const QString &fileName)
// but doesn't emit this signal, so we do it here
emit startupProjectChanged(m_file->m_startupProject);
QStringList failedProjects = m_file->failedProjectFileNames();
QStringList failedProjects = m_file->m_failedProjects;
if (!failedProjects.isEmpty()) {
QString fileList =
QDir::toNativeSeparators(failedProjects.join(QLatin1String("<br>")));
......@@ -525,7 +512,7 @@ bool SessionManager::loadImpl(const QString &fileName)
box->exec();
if (box->clickedButton() == removeButton)
m_file->clearFailedProjectFileNames();
m_file->m_failedProjects.clear();
}
// restore the active mode
......
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