Skip to content
Verified Commit 16939f04 authored by Jaak Ristioja's avatar Jaak Ristioja
Browse files

Fixed KateBuffer::canEncode() never returning false

Note that the QStringEncoder::encode() methods in Qt6 don't actually encode
anything, but instead return lazy objects which are convertible to QByteArray.
The actual encoding happens during this conversion, hence we need to explicitly
force the conversion. Otherwise encoding will not happen, encoder.hasError()
will never return true, and the canEncode() method will never return false.

For details, see:
  * https://bugreports.qt.io/browse/QTBUG-117705
  * https://bugreports.qt.io/browse/QTBUG-117902



Signed-off-by: default avatarJaak Ristioja <jaak@ristioja.ee>
parent d757b437
Pipeline #495248 passed with stage
in 6 minutes and 11 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment