From aef832c7d1d2ce4145b1fccc4f8feabc42ccd50d Mon Sep 17 00:00:00 2001 From: APTX Date: Wed, 8 May 2013 00:50:05 +0200 Subject: [PATCH] Use provided key, not it.key() The iterator is invalid if it can not find the key. --- localmylist/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localmylist/settings.cpp b/localmylist/settings.cpp index 4b34eae..84501af 100644 --- a/localmylist/settings.cpp +++ b/localmylist/settings.cpp @@ -45,7 +45,7 @@ QVariant Settings::get(const QString &key) const if (it != settings.end()) return it.value(); - qWarning() << "Trying to read undefined setting" << it.key(); + qWarning() << "Trying to read undefined setting" << key; return QVariant(); } -- 2.52.0