[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src
From: Jeff Mitchell <kde-dev () emailgoeshere ! com>
Date: 2007-02-28 21:44:36
Message-ID: 1172699076.740192.17583.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 638112 by mitchell:
As discussed, make the first star tri-state: clicking on it now toggles between \
half-star, full-star, and no rating.
M +3 -3 collectiondb.cpp
--- trunk/extragear/multimedia/amarok/src/collectiondb.cpp #638111:638112
@@ -3824,9 +3824,9 @@
if ( !values.isEmpty() )
{
int prev = values[4].toInt( &ok );
- if( ok && toggleHalf && prev == rating )
+ if( ok && toggleHalf && ( prev == rating || prev == 1 ) )
{
- if( rating == 1 )
+ if( prev == 1 )
rating = 0;
else if( rating % 2 ) //.5
rating++;
@@ -3837,7 +3837,7 @@
// check boundaries
if ( rating > 10 ) rating = 10;
- if ( rating < 0 || rating == 1 ) rating = 0; //ratings are 1-5
+ if ( rating < 0 ) rating = 0;
if ( !values.isEmpty() )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic