Fix for critical NV bug

This commit is contained in:
Muki 2017-01-24 21:23:11 +01:00
parent af88b35088
commit 14c07d7635
4 changed files with 8 additions and 5 deletions

View file

@ -8,7 +8,10 @@
# * date Author's Name <author's email> version-release
# - Summary of changes
* Sat Jan 22 2016 Michal Kosciesza 2.5.2-1
* Tue Jan 24 2017 Michal Kosciesza 2.5.2-2
- Critical bug fix
* Sat Jan 22 2017 Michal Kosciesza 2.5.2-1
- Caching improvements
- Minor UI improvements

View file

@ -14,7 +14,7 @@ Name: harbour-kaktus
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Kaktus
Version: 2.5.2
Release: 1
Release: 2
Group: Qt/Qt
License: LICENSE
URL: https://github.com/mkiol/kaktus

View file

@ -1,7 +1,7 @@
Name: harbour-kaktus
Summary: Kaktus
Version: 2.5.2
Release: 1
Release: 2
# The contents of the Group field should be one of the groups listed here:
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
Group: Qt/Qt

View file

@ -1432,7 +1432,7 @@ int NvFetcher::storeFeeds()
if (arr.at(i).isObject()) {
if (arr.at(i).toObject()["streams"].isArray()) {
QJsonArray aarr = arr.at(i).toObject()["streams"].toArray();
int aend = arr.count();
int aend = aarr.count();
#else
if ((*i).type()==QVariant::Map) {
if ((*i).toMap()["streams"].type()==QVariant::List) {
@ -1502,7 +1502,7 @@ int NvFetcher::storeFeeds()
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
if (arr.at(i).toObject()["items"].isArray()) {
QJsonArray aarr = arr.at(i).toObject()["items"].toArray();
int aend = arr.count();
int aend = aarr.count();
#else
if ((*i).toMap()["items"].type()==QVariant::List) {
QVariantList::const_iterator ai = (*i).toMap()["items"].toList().constBegin();