Created
October 28, 2015 15:13
-
-
Save blackjack/9673db132f384c1fee72 to your computer and use it in GitHub Desktop.
354461.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/language/assistant/staticassistantsmanager.cpp b/language/assistant/staticassistantsmanager.cpp | |
index 92ca321..248f960 100644 | |
--- a/language/assistant/staticassistantsmanager.cpp | |
+++ b/language/assistant/staticassistantsmanager.cpp | |
@@ -105,17 +105,6 @@ StaticAssistantsManager::StaticAssistantsManager(QObject* parent) | |
} | |
d->m_completionModel = new AssistantCompletionModel(this); | |
- connect(d->m_completionModel, &AssistantCompletionModel::hasCompletions, this, [this]{ | |
- if (auto view = d->m_currentView.data()) { | |
- // We cannot use KTextEditor::CodeCompletionInterface::startCompletion for now | |
- // It randomly disappears and refuses to invoke in many/various situations | |
- // Would be very nice to fix this in KTextEditor, because we /really/ want to | |
- // be able to invoke completion only on the assistants model as we could with | |
- // CodeCompletionInterface::startCompletion | |
- // HACK: private internal slot invocation | |
- QMetaObject::invokeMethod(view, "userInvokedCompletion"); | |
- } | |
- }); | |
new KDevelop::CodeCompletion(this, d->m_completionModel, {}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment