Ignore:
Timestamp:
Sep 17, 2009, 3:09:44 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed child widget duplication (#74).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r186 r187  
    645645            if (qApp->activePopupWidget() != 0) { // in popup mode
    646646                QWidget *w = QApplication::widgetAt(qmsg.ptl.x, qmsg.ptl.y);
    647                 if (w) {
    648                     POINTL ptl = { SHORT1FROMMP(qmsg.mp1), SHORT2FROMMP(qmsg.mp1) };
    649                     WinMapWindowPoints(qmsg.hwnd, w->winId(), &ptl, 1);
    650                     qmsg.mp1 = MPFROM2SHORT(ptl.x, ptl.y);
     647                if (w)
    651648                    widget = (QETWidget*)w;
    652                 }
    653649            }
    654650            if (widget->translateMouseEvent(qmsg)) // mouse event
Note: See TracChangeset for help on using the changeset viewer.