Commit 8247a0b4 authored by Daniel Teske's avatar Daniel Teske
Browse files

SessionManager::projects() return a copy instead of a const&

Fixes a crash on session restore for Eike. Iterating over
a const & of the list is dangerous while projects are
added to the list.

Change-Id: I1861b7f1875420769c2493fb0b4012728380efd2
Reviewed-by: default avatarEike Ziller <>
parent 8be26d07
......@@ -433,7 +433,7 @@ void SessionManager::closeAllProjects()
const QList<Project *> &SessionManager::projects()
QList<Project *> SessionManager::projects()
return d->m_projects;
......@@ -101,7 +101,7 @@ public:
static Utils::FileName sessionNameToFileName(const QString &session);
static Project *startupProject();
static const QList<Project *> &projects();
static QList<Project *> projects();
static bool hasProjects();
static bool isDefaultVirgin();
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