aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2011-08-18 15:53:34 +0200
committerDaniel Teske <daniel.teske@nokia.com>2011-08-18 16:39:53 +0200
commit2897c666974c852e4592ce846b24568ba6391c06 (patch)
tree2cbb2e04a69f2ad0d477a4f4fe1b8d79d2f730fe /src
parent7536aa55781f374e048d740841fc03b4d1b5ed61 (diff)
Fix argument parsing in projectexplorer, fixing -lastsession
Change-Id: I942c08b5dde0c014f223247bc77f65effcd45787 Task-Nr: QTCREATORBUG-5773 Reviewed-on: http://codereview.qt.nokia.com/3194 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 645cd4bcbf9..ebb1bde03fc 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -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();