aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Semke <[email protected]>2018-03-25 17:38:45 +0200
committerAlexander Semke <[email protected]>2018-04-01 12:33:17 +0200
commitc484f3d037273487cb76d9dcc2ac90a76f765558 (patch)
tree05b00654a7189a057961c45e4aa21d4814d0011b
parent8fee24fa384a0e6929952269e55036e43e9e488b (diff)
Login to octave session prior to initilizing the octave highligher in the worksheet.
-rw-r--r--src/worksheet.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/worksheet.cpp b/src/worksheet.cpp
index ebe28a1..2ee0b79 100644
--- a/src/worksheet.cpp
+++ b/src/worksheet.cpp
@@ -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);