Commit c484f3d0 authored by Alexander Semke's avatar Alexander Semke

Login to octave session prior to initilizing the octave highligher in the worksheet.

parent 8fee24fa
......@@ -762,6 +762,11 @@ void Worksheet::enableHighlighting(bool highlight)
{
if(m_highlighter)
m_highlighter->deleteLater();
//octave highligther fetches the funcitons names from ocate -> we need to login here
if (!m_loginDone && m_session->backend()->name() == QLatin1String("Octave"))
loginToSession();
m_highlighter=session()->syntaxHighlighter(this);
if(!m_highlighter)
m_highlighter=new Cantor::DefaultHighlighter(this);
......
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