qt6-bb10/tests/auto/corelib
Thiago Macieira b2be272d35 Make QMetaObject::Connection check its state deeply
Since Connection can be copied, one copy could be used for
disconnecting, but the other's d_ptr wouldn't get updated and would
continue to report as still connected.

This patch fixes that by making it check the internal state. That is
only done after d_ptr is already known to be non-null. Unfortunately,
that is the common path:

  if (connect(sender, &Sender::signal, [] {}))

will call an out-of-line function. I don't see a way out.

Task-number: QTBUG-46213
Change-Id: I66a35ce5f88941f29aa6ffff13dfb45dca68a350
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-06-19 23:22:33 +00:00
..
animation Update copyright headers 2015-02-11 06:49:51 +00:00
codecs fix usage of wince scope 2015-06-05 10:29:10 +00:00
global Add CONFIG += testcase to test qglobalstatic. 2015-05-22 04:37:52 +00:00
io Fix leaking of link in tst_QFileInfo::canonicalFilePath(). 2015-06-10 10:06:17 +00:00
itemmodels Fix less-than comparison for QStandardItem and QSortFilterProxyModel with invalid data. 2015-06-11 13:29:23 +00:00
json Make sure remove() doesn't corrupt the json object 2015-03-18 07:34:59 +00:00
kernel Make QMetaObject::Connection check its state deeply 2015-06-19 23:22:33 +00:00
mimetypes Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
plugin fix usage of wince scope 2015-06-05 10:29:10 +00:00
statemachine QStateMachine: empty the whole internal queue before external queue 2015-05-19 08:03:46 +00:00
thread Do not search test binary if QProcess is not supported. 2015-03-23 08:38:58 +00:00
tools fix usage of wince scope 2015-06-05 10:29:10 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00