From d3f42a28ccf07b7e4d43b2f869cd32d927b724ce Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 7 Apr 2011 01:24:59 +0000 Subject: [PATCH] 2011-04-06 18:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtcore/hbqt_hbqevents.cpp ! QEvent:Close now returns TRUE to the calling loop. Now this is the responsibility of the user code to set an event to be accepted or ignored. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbqt/qtcore/hbqt_hbqevents.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3e2ef6ded4..7332e15666 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2011-04-06 18:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtcore/hbqt_hbqevents.cpp + ! QEvent:Close now returns TRUE to the calling loop. + Now this is the responsibility of the user code to + set an event to be accepted or ignored. + 2011-04-06 17:48 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/CREDITS.txt ! Updated: credits. diff --git a/harbour/contrib/hbqt/qtcore/hbqt_hbqevents.cpp b/harbour/contrib/hbqt/qtcore/hbqt_hbqevents.cpp index 744d730b29..10557474ee 100644 --- a/harbour/contrib/hbqt/qtcore/hbqt_hbqevents.cpp +++ b/harbour/contrib/hbqt/qtcore/hbqt_hbqevents.cpp @@ -232,7 +232,7 @@ bool HBQEvents::eventFilter( QObject * object, QEvent * event ) } if( eventtype == QEvent::Close ) { - event->ignore(); + return true; } } }