summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>2016-10-29 21:06:45 (GMT)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>2016-10-29 21:06:45 (GMT)
commit446a8170b312e1673f475d11810f4af01c4cc608 (patch)
tree3dae5ab16eb9d511861ab1195d9f6582e74db1a7
parente34e7a5b5b2044e960f644e2fab804b84ff25d4d (diff)
Fix crash on right click in flat profile without data
Usually profile data is loaded, so this would not trigger.
-rw-r--r--libviews/functionselection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libviews/functionselection.cpp b/libviews/functionselection.cpp
index b0e62d6..fab7a89 100644
--- a/libviews/functionselection.cpp
+++ b/libviews/functionselection.cpp
@@ -351,11 +351,11 @@ void FunctionSelection::addGroupMenu(QMenu* menu)
addGroupAction(m, ProfileContext::Function, tr("No Grouping"));
m->addSeparator();
}
- if (_data->objectMap().count()>1)
+ if (_data && _data->objectMap().count()>1)
addGroupAction(m, ProfileContext::Object);
- if (_data->fileMap().count()>1)
+ if (_data && _data->fileMap().count()>1)
addGroupAction(m, ProfileContext::File);
- if (_data->classMap().count()>1)
+ if (_data && _data->classMap().count()>1)
addGroupAction(m, ProfileContext::Class);
addGroupAction(m, ProfileContext::FunctionCycle);