mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:56:12 +02:00
Qt,Qt5: do not call setPrinterName() if current printerName is already setted up.part of issue #34569
git-svn-id: trunk@59606 -
This commit is contained in:
parent
b36dbf345d
commit
aacbf95adb
@ -4435,7 +4435,8 @@ var
|
|||||||
Str: WideString;
|
Str: WideString;
|
||||||
begin
|
begin
|
||||||
Str := AValue;
|
Str := AValue;
|
||||||
QPrinter_setPrinterName(FHandle, @Str);
|
if getPrinterName <> AValue then
|
||||||
|
QPrinter_setPrinterName(FHandle, @Str);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TQtPrinter.getPrinterName: WideString;
|
function TQtPrinter.getPrinterName: WideString;
|
||||||
|
@ -4441,7 +4441,8 @@ var
|
|||||||
Str: WideString;
|
Str: WideString;
|
||||||
begin
|
begin
|
||||||
Str := GetUtf8String(AValue);
|
Str := GetUtf8String(AValue);
|
||||||
QPrinter_setPrinterName(FHandle, @Str);
|
if getPrinterName <> Str then
|
||||||
|
QPrinter_setPrinterName(FHandle, @Str);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TQtPrinter.getPrinterName: WideString;
|
function TQtPrinter.getPrinterName: WideString;
|
||||||
|
Loading…
Reference in New Issue
Block a user