summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-04-01 23:25:51 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-04-05 06:52:39 +0000
commit284016c7e61ded0e3145b6f3e96748ddc1853051 (patch)
tree00a4abea8a1a9f985db7097c4a930fb8bccf748d /src/corelib
parentb5eb553bf3bd6b9aad79241a65b9bebb40a848fd (diff)
network-settings.h: don't crash when running without the test server
Don't access first() of a potentially-empty QList. Check for QHostInfo::error() first. Also change to constFirst() to prevent a detach. Change-Id: I91fa0bbfb21f62af29abdb23b4869a7f039b259e Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions