forked from qt-creator/qt-creator
Editor: Clean up source.
Change-Id: I37a430ba276b849666954bd164c2981aad1b4ee9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user