Skip to content

Commit

Permalink
No setCodec on qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 18, 2021
1 parent 2af0a64 commit 0eaf629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1911,7 +1911,9 @@ void QgsAttributeForm::initPython()
{
// Read it into a string
QTextStream inf( inputFile );
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
inf.setCodec( "UTF-8" );
#endif
initCode = inf.readAll();
inputFile->close();
}
Expand Down

0 comments on commit 0eaf629

Please sign in to comment.