Commit ebede115 authored by Daniel Teske's avatar Daniel Teske Committed by Tobias Hunger
Browse files

Partially revert -lastsession fix

Change-Id: I965c8e51ca38b343e65764f77fe1d204ff793f23

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarTobias Hunger <>
parent 9b544a27
......@@ -1318,10 +1318,10 @@ void ProjectExplorerPlugin::currentModeChanged(Core::IMode *mode, Core::IMode *o
void ProjectExplorerPlugin::determineSessionToRestoreAtStartup()
QStringList arguments = pluginSpec()->arguments();
// Process command line arguments first:
if (arguments.contains("-lastsession"))
if (pluginSpec()->arguments.contains("-lastsession"))
d->m_sessionToRestoreAtStartup = d->m_session->lastSession();
QStringList arguments = ExtensionSystem::PluginManager::instance()->arguments();
if (d->m_sessionToRestoreAtStartup.isNull()) {
QStringList sessions = d->m_session->sessions();
// We have command line arguments, try to find a session in them
Supports Markdown
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