diff options
Diffstat (limited to 'src/plugins/cpptools/cpptoolsreuse.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsreuse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolsreuse.cpp b/src/plugins/cpptools/cpptoolsreuse.cpp index cfb29dc401..f64a31ffdb 100644 --- a/src/plugins/cpptools/cpptoolsreuse.cpp +++ b/src/plugins/cpptools/cpptoolsreuse.cpp @@ -196,7 +196,7 @@ void switchHeaderSource() { const Core::IDocument *currentDocument = Core::EditorManager::currentDocument(); QTC_ASSERT(currentDocument, return); - const QString otherFile = correspondingHeaderOrSource(currentDocument->filePath()); + const QString otherFile = correspondingHeaderOrSource(currentDocument->filePath().toString()); if (!otherFile.isEmpty()) Core::EditorManager::openEditor(otherFile); } |