qapplication_win.cpp patch
Andreas Hausladen <[email protected]>
| Newsgroups | gmane.comp.kde.devel.cygwin |
|---|---|
| Message-ID | <[email protected]> |
The attached patch fixes an access violation when you want to show a modal widget but create a new child widget in the paint event. The issue is that the qt_try_modal() and tryModalHelper() functions do not test for "widget != null" and so tryModalHelper() crashes in that special case. Regards, Andreas Hausladen _______________________________________________ kde-cygwin mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-cygwin
qapplication_win.cpp.patch
(text/plain, 680 B)
Index: src/kernel/qapplication_win.cpp
===================================================================
RCS file: /cvsroot/kde-cygwin/qt-3/src/kernel/Attic/qapplication_win.cpp,v
retrieving revision 1.1.2.30.2.66
diff -u -r1.1.2.30.2.66 qapplication_win.cpp
--- src/kernel/qapplication_win.cpp 13 May 2005 18:35:13 -0000 1.1.2.30.2.66
+++ src/kernel/qapplication_win.cpp 15 May 2005 23:01:54 -0000
@@ -3022,7 +3022,7 @@
if ( widget && widget->invokeWinEvent( &message ) )
return 1;
- if ( app_do_modal ) // modal event handling
+ if ( app_do_modal && widget ) // modal event handling
if ( !qt_try_modal( widget, uMsg, wParam ) )
return 1;