diff options
Diffstat (limited to 'akonadi2_cli/repl/replStates.cpp')
-rw-r--r-- | akonadi2_cli/repl/replStates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/akonadi2_cli/repl/replStates.cpp b/akonadi2_cli/repl/replStates.cpp index e87dd5f..efa1353 100644 --- a/akonadi2_cli/repl/replStates.cpp +++ b/akonadi2_cli/repl/replStates.cpp | |||
@@ -107,7 +107,7 @@ void EvalState::onEntry(QEvent *event) | |||
107 | if (m_complete) { | 107 | if (m_complete) { |
108 | //emit output("Processing ... " + command); | 108 | //emit output("Processing ... " + command); |
109 | const QStringList commands = command.split(" "); | 109 | const QStringList commands = command.split(" "); |
110 | Module::run(commands); | 110 | Module::self()->run(commands); |
111 | emit completed(); | 111 | emit completed(); |
112 | } | 112 | } |
113 | } | 113 | } |
@@ -143,7 +143,7 @@ static char **akonadi2_cli_tab_completion(const char *text, int start, int end) | |||
143 | 143 | ||
144 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) | 144 | static char *akonadi2_cli_next_tab_complete_match(const char *text, int state) |
145 | { | 145 | { |
146 | QVector<Module::Syntax> nearest = Module::nearestSyntax(tab_completion_full_state, QString(text)); | 146 | QVector<Module::Syntax> nearest = Module::self()->nearestSyntax(tab_completion_full_state, QString(text)); |
147 | 147 | ||
148 | if (nearest.size() > state) { | 148 | if (nearest.size() > state) { |
149 | return qstrdup(nearest[state].keyword.toUtf8()); | 149 | return qstrdup(nearest[state].keyword.toUtf8()); |