Commit 2897c666 authored by Daniel Teske's avatar Daniel Teske

Fix argument parsing in projectexplorer, fixing -lastsession

Change-Id: I942c08b5dde0c014f223247bc77f65effcd45787
Task-Nr: QTCREATORBUG-5773
Reviewed-on: http://codereview.qt.nokia.com/3194Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 7536aa55
......@@ -88,6 +88,7 @@
# include "msvctoolchain.h"
#endif
#include <extensionsystem/pluginspec.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/filemanager.h>
#include <coreplugin/icore.h>
......@@ -1317,7 +1318,7 @@ void ProjectExplorerPlugin::currentModeChanged(Core::IMode *mode, Core::IMode *o
void ProjectExplorerPlugin::determineSessionToRestoreAtStartup()
{
QStringList arguments = ExtensionSystem::PluginManager::instance()->arguments();
QStringList arguments = pluginSpec()->arguments();
// Process command line arguments first:
if (arguments.contains("-lastsession"))
d->m_sessionToRestoreAtStartup = d->m_session->lastSession();
......
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