Ignore:
Timestamp:
Feb 25, 2010, 4:31:14 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed assertion at #1125 in qwidget.cpp (due to an attempt to re-instantiate QDesktopWidget during application termination).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/util/qsystemtrayicon_pm.cpp

    r564 r603  
    121121    RECTL rcl;
    122122    if (xstQuerySysTrayIconRect(winId(), 0, &rcl)) {
    123         int sh = QApplication::desktop()->height();
     123        int sh = height();
    124124        // flip y coordinates
    125125        rcl.yTop = sh - rcl.yTop;
     
    213213                        QPoint gpos(pMsg->ptsPointerPos.x,
    214214                                    // flip y coordinate
    215                                     QApplication::desktop()->height() -
    216                                         (pMsg->ptsPointerPos.y + 1));
     215                                    qt_display_height() - (pMsg->ptsPointerPos.y + 1));
    217216                        q->contextMenu()->popup(gpos);
    218217                        q->contextMenu()->activateWindow();
Note: See TracChangeset for help on using the changeset viewer.