mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 18:22:54 +02:00
Qt: Avoid crash in qtthemes when changing application style programatically.
git-svn-id: trunk@17698 -
This commit is contained in:
parent
a3eafb41c7
commit
fb451cc154
@ -70,8 +70,7 @@ implementation
|
|||||||
|
|
||||||
function TQtThemeServices.GetStyle: QStyleH;
|
function TQtThemeServices.GetStyle: QStyleH;
|
||||||
begin
|
begin
|
||||||
if FStyle = nil then
|
FStyle := QApplication_style();
|
||||||
FStyle := QApplication_style();
|
|
||||||
Result := FStyle;
|
Result := FStyle;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user