Ticket #4084: mythdialogs-up-to-date-loop.patch

File mythdialogs-up-to-date-loop.patch, 900 bytes (added by candrews@…, 17 years ago)
  • libs/libmyth/mythdialogs.cpp

     
    1111#include <qdict.h>
    1212#include <qsqldatabase.h>
    1313#include <qobjectlist.h>
     14#include <qeventloop.h>
    1415
    1516#ifdef QWS
    1617#include <qwindowsystem_qws.h>
     
    149150    Show();
    150151
    151152    in_loop = TRUE;
    152     qApp->enter_loop();
     153    QApplication::eventLoop()->enterLoop();
    153154
    154155    int res = result();
    155156
    (this hunk was shorter than expected) 
    166167    if (in_loop) 
    167168    {
    168169        in_loop = FALSE;
    169         qApp->exit_loop();
     170        QApplication::eventLoop()->exitLoop();
    170171    }
    171172}
    172173
    (this hunk was shorter than expected) 
    23692371    if (m_inLoop) 
    23702372    {
    23712373        m_inLoop = false;
    2372         qApp->exit_loop();
     2374        QApplication::eventLoop()->exitLoop();
    23732375    }
    23742376}
    23752377
     
    23872390    show();
    23882391
    23892392    m_inLoop = true;
    2390     qApp->enter_loop();
     2393    QApplication::eventLoop()->enterLoop();
    23912394
    23922395    int res = result();
    23932396