Skip to content

Commit e6dd89f

Browse files
committedMar 20, 2023
Fix capability check
1 parent 6c8bda7 commit e6dd89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/codeeditors/qgscodeeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void QgsCodeEditor::contextMenuEvent( QContextMenuEvent *event )
239239
menu->addAction( reformatAction );
240240
}
241241

242-
if ( languageCapabilities() & Qgis::ScriptLanguageCapability::Reformat )
242+
if ( languageCapabilities() & Qgis::ScriptLanguageCapability::CheckSyntax )
243243
{
244244
QAction *syntaxCheckAction = new QAction( tr( "Check Syntax" ), menu );
245245
syntaxCheckAction->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/iconSyntaxErrorConsole.svg" ) ) );

0 commit comments

Comments
 (0)
Please sign in to comment.