Ignore:
Timestamp:
Nov 13, 2006, 12:28:25 AM (19 years ago)
Author:
dmik
Message:

Kernel: Fixed recursion (that ate the entire stack) if the WShowModal flag was requested (or already set) when calling QWidget::reparent() and there was another modal widget visible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel/qwidget_pm.cpp

    r153 r154  
    11651165        if (
    11661166            topModal && this != topModal && parentWidget() != topModal &&
    1167             isTopLevel() && !testWFlags( WGroupLeader )
     1167            isTopLevel() && !testWFlags( WGroupLeader ) &&
     1168            !testWFlags( WShowModal ) // don't block if we're going to be modal
    11681169        )
    11691170            blockedBy = topModal;
Note: See TracChangeset for help on using the changeset viewer.