Ticket #4084: mythdialogs-up-to-date-loop.patch
File mythdialogs-up-to-date-loop.patch, 900 bytes (added by , 17 years ago) |
---|
-
libs/libmyth/mythdialogs.cpp
11 11 #include <qdict.h> 12 12 #include <qsqldatabase.h> 13 13 #include <qobjectlist.h> 14 #include <qeventloop.h> 14 15 15 16 #ifdef QWS 16 17 #include <qwindowsystem_qws.h> … … 149 150 Show(); 150 151 151 152 in_loop = TRUE; 152 qApp->enter_loop();153 QApplication::eventLoop()->enterLoop(); 153 154 154 155 int res = result(); 155 156 … … (this hunk was shorter than expected) 166 167 if (in_loop) 167 168 { 168 169 in_loop = FALSE; 169 qApp->exit_loop();170 QApplication::eventLoop()->exitLoop(); 170 171 } 171 172 } 172 173 … … (this hunk was shorter than expected) 2369 2371 if (m_inLoop) 2370 2372 { 2371 2373 m_inLoop = false; 2372 qApp->exit_loop();2374 QApplication::eventLoop()->exitLoop(); 2373 2375 } 2374 2376 } 2375 2377 … … 2387 2390 show(); 2388 2391 2389 2392 m_inLoop = true; 2390 qApp->enter_loop();2393 QApplication::eventLoop()->enterLoop(); 2391 2394 2392 2395 int res = result(); 2393 2396