Qt: must restore minimized active modal form in any case if we tried to restore non-active modal form from taskbar.issue #29744

git-svn-id: trunk@51732 -
This commit is contained in:
zeljko 2016-02-27 12:28:57 +00:00
parent e090cee919
commit 18fd7670b3

View File

@ -7154,8 +7154,8 @@ begin
begin
{$IFDEF MSWINDOWS}
// issues #26463, #29744, must restore app if we activate non modal window from taskbar
if (Application.ModalLevel > 0) and not IsModal and
(QApplication_activeModalWidget <> nil) and QWidget_isMinimized(QApplication_activeModalWidget) then
if (Application.ModalLevel > 0) and
(QApplication_activeModalWidget <> nil) and QWidget_isMinimized(QApplication_activeModalWidget) then
begin
W := QApplication_activeModalWidget;
// back to tray