forked from qt-creator/qt-creator
QmlJSEditor: Fix crash when triggering context menu
Regression introduced with 3da9c89981.
Change-Id: Ia0ede1b46b7bc8cbce8b55335b3a548e7f8d384d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -238,6 +238,12 @@ Utils::JsonSchemaManager *QmlJSEditorPlugin::jsonManager()
|
||||
return &m_instance->d->m_jsonManager;
|
||||
}
|
||||
|
||||
QuickToolBar *QmlJSEditorPlugin::quickToolBar()
|
||||
{
|
||||
QTC_ASSERT(m_instance && m_instance->d, return new QuickToolBar());
|
||||
return &m_instance->d->m_quickToolBar;
|
||||
}
|
||||
|
||||
void QmlJSEditorPluginPrivate::findUsages()
|
||||
{
|
||||
if (QmlJSEditorWidget *editor = qobject_cast<QmlJSEditorWidget*>(EditorManager::currentEditor()->widget()))
|
||||
|
||||
Reference in New Issue
Block a user