Skip to content
Permalink
Browse files
No setCodec on qt6
  • Loading branch information
nyalldawson committed Aug 18, 2021
1 parent 2af0a64 commit 0eaf6296b5fd874d701d47ab082fba91c87677ba
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsattributeform.cpp
@@ -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();
}

0 comments on commit 0eaf629

Please sign in to comment.