From 1d88e6f2f5a77f2ae7dc820a38c84084be02f4e9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 29 Oct 2010 07:37:30 +0000 Subject: [PATCH] 2010-10-29 09:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbqt/qtcore/hbqt_misc.prg * Changed to not RTE when connecting to an already connected event. It will now return .F.. This emulates old behavior. --- harbour/ChangeLog | 5 +++++ harbour/contrib/hbqt/qtcore/hbqt_misc.prg | 2 ++ 2 files changed, 7 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 32566419f4..6affa82634 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2010-10-29 09:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbqt/qtcore/hbqt_misc.prg + * Changed to not RTE when connecting to an already connected event. + It will now return .F.. This emulates old behavior. + 2010-10-29 01:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbqt/qtgui/hbqt_init.cpp * contrib/hbqt/qtwebkit/hbqt_init.cpp diff --git a/harbour/contrib/hbqt/qtcore/hbqt_misc.prg b/harbour/contrib/hbqt/qtcore/hbqt_misc.prg index 654260ea1e..e7e8ac3329 100644 --- a/harbour/contrib/hbqt/qtcore/hbqt_misc.prg +++ b/harbour/contrib/hbqt/qtcore/hbqt_misc.prg @@ -151,6 +151,8 @@ METHOD HbQtObjectHandler:connect( cnEvent, bBlock ) SWITCH nResult CASE 0 RETURN .T. + CASE -3 /* event already connected */ + RETURN .F. ENDSWITCH EXIT