[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/dataengines/comic
From: Matthias Fuchs <mat69 () gmx ! net>
Date: 2008-11-06 20:47:59
Message-ID: 1226004479.532798.1231.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 880907 by mfuchs:
Make checkIdentifier work in more cases.
M +3 -4 comicproviderwrapper.cpp
--- trunk/KDE/kdeplasma-addons/dataengines/comic/comicproviderwrapper.cpp #880906:880907
@@ -374,11 +374,10 @@
case NumberIdentifier:
//if the identifier is 0 make it the lastIdentifier
if ( !mFirstIdentifier.isNull() && !identifier->isNull() &&
- identifier->toInt() < mFirstIdentifier.toInt() -1 ) {
+ identifier->toInt() < mFirstIdentifier.toInt() && identifier->toInt() ) {
*identifier = mFirstIdentifier;
- }
- if ( !mLastIdentifier.isNull() && !identifier->isNull() &&
- ( identifier->toInt() > mLastIdentifier.toInt() || !identifier->toInt() ) ) {
+ } else if ( !mLastIdentifier.isNull() && !identifier->isNull() &&
+ ( identifier->toInt() > mLastIdentifier.toInt() || ( identifier->toInt() == 0 ) ) ) {
*identifier = mLastIdentifier;
}
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic