From: APTX Date: Tue, 7 May 2013 22:50:05 +0000 (+0200) Subject: Use provided key, not it.key() X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=aef832c7d1d2ce4145b1fccc4f8feabc42ccd50d;p=localmylist.git Use provided key, not it.key() The iterator is invalid if it can not find the key. --- 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(); }