summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/suppressiondialog.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-09-05 11:46:07 +0200
committerhjk <hjk121@nokiamail.com>2013-09-05 12:28:12 +0200
commitaadb6f16af94a2baff9d13772e9ddce33faa7650 (patch)
tree5a5169e0d7742527b112c1f29c5509f78db6bbdd /src/plugins/valgrind/suppressiondialog.cpp
parentdab9886ebf7d1d3cfb8eb537e20439ddb4855e6f (diff)
downloadqt-creator-aadb6f16af94a2baff9d13772e9ddce33faa7650.tar.gz
SessionManager: Apply 'static' pattern
Change-Id: I370f72fcf7a24216ee189979ce6b5c8bfc5f4140 Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/valgrind/suppressiondialog.cpp')
-rw-r--r--src/plugins/valgrind/suppressiondialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/valgrind/suppressiondialog.cpp b/src/plugins/valgrind/suppressiondialog.cpp
index 782428c5d1..cd19cd6e33 100644
--- a/src/plugins/valgrind/suppressiondialog.cpp
+++ b/src/plugins/valgrind/suppressiondialog.cpp
@@ -211,9 +211,8 @@ void SuppressionDialog::accept()
return;
// Add file to project if there is a project containing this file on the file system.
- ProjectExplorer::SessionManager *session = ProjectExplorer::ProjectExplorerPlugin::instance()->session();
- if (!session->projectForFile(path)) {
- foreach (ProjectExplorer::Project *p, session->projects()) {
+ if (!ProjectExplorer::SessionManager::projectForFile(path)) {
+ foreach (ProjectExplorer::Project *p, ProjectExplorer::SessionManager::projects()) {
if (path.startsWith(p->projectDirectory())) {
p->rootProjectNode()->addFiles(QStringList() << path);
break;