[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: k3b_0_11_branch: kdeextragear-1/k3b/src/cddb
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2004-07-02 9:01:20
Message-ID: 20040702090120.5A33B90DA () office ! kde ! org
[Download RAW message or body]
CVS commit by trueg:
make sure the dicsid is always 8 chars in length
M +2 -2 k3bcddb.cpp 1.13.2.2
M +4 -4 k3bcddblocalquery.cpp 1.6.2.1
--- kdeextragear-1/k3b/src/cddb/k3bcddb.cpp #1.13.2.1:1.13.2.2
@@ -143,5 +143,5 @@ void K3bCddb::slotQueryFinished( K3bCddb
// make sure the result has the requested discid since otherwise local saving \
does not make much sense
- m_lastResult.discid = QString::number( m_toc.discId(), 16 );
+ m_lastResult.discid = QString::number( m_toc.discId(), 16 ).rightJustify( 8, '0' \
);
emit queryFinished( K3bCddbQuery::SUCCESS );
--- kdeextragear-1/k3b/src/cddb/k3bcddblocalquery.cpp #1.6:1.6.2.1
@@ -45,10 +45,10 @@ void K3bCddbLocalQuery::doQuery()
kdDebug() << "(K3bCddbLocalQuery) searching in dir " << path << " for "
- << QString::number( toc().discId(), 16 ) << endl;
+ << QString::number( toc().discId(), 16 ).rightJustify( 8, '0' ) << endl;
for( QStringList::const_iterator it = categories().begin();
it != categories().end(); ++it ) {
- QString file = path + *it + "/" + QString::number( toc().discId(), 16 );
+ QString file = path + *it + "/" + QString::number( toc().discId(), 16 \
).rightJustify( 8, '0' );
if( QFile::exists( file ) ) {
@@ -65,5 +65,5 @@ void K3bCddbLocalQuery::doQuery()
parseEntry( t, entry );
K3bCddbResultHeader header;
- header.discid = QString::number( toc().discId(), 16 );
+ header.discid = QString::number( toc().discId(), 16 ).rightJustify( 8, '0' \
); header.category = *it;
header.title = entry.cdTitle;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic