From 6b10fc91413095535a0b91f7efe59cf5bfa2b81e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 28 Jul 2012 03:39:51 +0200 Subject: QUrl: document that setIdnWhitelist isn't thread-safe Change-Id: Ia77a211f1d670d81b2a4783693ed09533d53eceb Reviewed-by: David Faure --- src/corelib/io/qurl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index e6ad1ea..35daa18 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -5992,6 +5992,9 @@ QStringList QUrl::idnWhitelist() Sets the whitelist of Top-Level Domains (TLDs) that are allowed to have non-ASCII characters in domains to the value of \a list. + Note that if you call this function, you need to do so \em before + you start any threads that might access idnWhitelist(). + Qt has comes a default list that contains the Internet top-level domains that have published support for Internationalized Domain Names (IDNs) and rules to guarantee that no deception can happen between similarly-looking -- cgit v0.12