diff options
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index dd3287f251..db4a86b6c6 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -902,7 +902,7 @@ void CallgrindToolPrivate::requestContextMenu(TextEditor::ITextEditor *editor, i // find callgrind text mark that corresponds to this editor's file and line number const Function *func = 0; foreach (CallgrindTextMark *textMark, m_textMarks) { - if (textMark->fileName() == editor->file()->fileName() && textMark->lineNumber() == line) { + if (textMark->fileName() == editor->document()->fileName() && textMark->lineNumber() == line) { func = textMark->function(); break; } |