Editor: Clean up source.

Change-Id: I37a430ba276b849666954bd164c2981aad1b4ee9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
David Schulz
2013-01-04 10:48:42 +01:00
parent 7b0f997963
commit c385034502

View File

@@ -308,8 +308,7 @@ void Manager::gotoLocations(const QList<QVariant> &list)
// what is open now? // what is open now?
if (Core::IEditor *editor = Core::EditorManager::currentEditor()) { if (Core::IEditor *editor = Core::EditorManager::currentEditor()) {
// get current file name // get current file name
Core::IDocument *document = editor->document(); if (Core::IDocument *document = editor->document())
if (document)
fileName = document->fileName(); fileName = document->fileName();
// if text file - what is current position? // if text file - what is current position?