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

Partially revert -lastsession fix

Change-Id: I965c8e51ca38b343e65764f77fe1d204ff793f23
Reviewed-on: http://codereview.qt.nokia.com/3411Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
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
......
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