Commit 435207a2 authored by Maurice Kalinowski's avatar Maurice Kalinowski
Browse files

ensure editor is visible

after fetching a codesnippet, we should switch to edit mode
and open the editor
parent 6a91b63a
......@@ -261,7 +261,9 @@ void CodepasterPlugin::finishFetch(const QString &titleDescription,
if (error) {
ICore::instance()->messageManager()->printToOutputPane(content, true);
} else {
EditorManager::instance()->newFile(Core::Constants::K_DEFAULT_TEXT_EDITOR, &title, content);
EditorManager* manager = EditorManager::instance();
IEditor* editor = manager->newFile(Core::Constants::K_DEFAULT_TEXT_EDITOR, &title, content);
manager->activateEditor(editor);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment