Qt: proper conversion from widestring.

This commit is contained in:
Željan Rikalo 2022-11-15 15:56:47 +01:00
parent 80b197d439
commit da19cbeace

View File

@ -291,7 +291,7 @@ begin
CurrentPageSize := QtDefaultPrinter.PageSize;
EnumQPrinters(PrinterList);
Index := PrinterList.IndexOf(UTF8Encode(QtDefaultPrinter.PrinterName));
Index := PrinterList.IndexOf(UTF16ToUTF8(QtDefaultPrinter.PrinterName));
if Index>=0 then
begin
{$IF DEFINED(LCLQt5) OR DEFINED(LCLQt6)}