diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp index d07897141c..f3354cad65 100644 --- a/src/corelib/io/qiodevice.cpp +++ b/src/corelib/io/qiodevice.cpp @@ -580,7 +580,7 @@ void QIODevice::setTextModeEnabled(bool enabled) */ bool QIODevice::isTextModeEnabled() const { - return d_func()->openMode & Text; + return d_func()->openMode.testAnyFlag(Text); } /*!