Skip to content
Snippets Groups Projects
Commit c3850345 authored by David Schulz's avatar David Schulz
Browse files

Editor: Clean up source.


Change-Id: I37a430ba276b849666954bd164c2981aad1b4ee9
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 7b0f9979
No related branches found
No related tags found
No related merge requests found
......@@ -308,8 +308,7 @@ void Manager::gotoLocations(const QList<QVariant> &list)
// what is open now?
if (Core::IEditor *editor = Core::EditorManager::currentEditor()) {
// get current file name
Core::IDocument *document = editor->document();
if (document)
if (Core::IDocument *document = editor->document())
fileName = document->fileName();
// if text file - what is current position?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment