Skip to content

Commit

Permalink
Fix clazy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Jan 10, 2023
1 parent 99fec35 commit 0353154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/codeeditors/qgscodeeditorpython.cpp
Expand Up @@ -260,7 +260,7 @@ void QgsCodeEditorPython::keyPressEvent( QKeyEvent *event )
}

// When closing character is entered inside an opening/closing pair, shift the cursor
else if ( PAIRS.values().contains( eText ) && nextChar == eText )
else if ( PAIRS.key( eText ) != "" && nextChar == eText )
{
setCursorPosition( line, column + 1 );
event->accept();
Expand Down

0 comments on commit 0353154

Please sign in to comment.