Commit faebea45 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Use QPointer to store ref to View in LSPTooltip

This is till I get around to fix this properly or create tooltip on
demand.
parent 78c241b0
......@@ -12,6 +12,7 @@
#include <QFontMetrics>
#include <QLabel>
#include <QMouseEvent>
#include <QPointer>
#include <QScreen>
#include <QString>
#include <QTextBrowser>
......@@ -187,7 +188,7 @@ public:
m_view = view;
hl.setDefinition(r.definitionForFileName(view->document()->url().toString()));
hl.setDefinition(r.definitionForFileName(m_view->document()->url().toString()));
updateFont();
if (m_view && m_view->focusProxy()) {
......@@ -345,7 +346,7 @@ protected:
private:
bool inContextMenu = false;
KTextEditor::View *m_view;
QPointer<KTextEditor::View> m_view;
QTimer m_hideTimer;
HtmlHl hl;
KSyntaxHighlighting::Repository r;
......
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