[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-cygwin
Subject: qapplication_win.cpp patch
From: Andreas Hausladen <Andreas.Hausladen () gmx ! de>
Date: 2005-05-15 23:13:26
Message-ID: 4287D796.5030708 () gmx ! de
[Download RAW message or body]
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
["qapplication_win.cpp.patch" (text/plain)]
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;
_______________________________________________
kde-cygwin mailing list
kde-cygwin@kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic