[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src
From: Dan Meltzer <hydrogen () notyetimplemented ! com>
Date: 2008-08-31 22:49:00
Message-ID: 1220222940.437192.31696.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 855508 by dmeltzer:
Oh, fine, we'll even use the proper variable name in the check so that amarok can \
compile
M +2 -2 App.cpp
--- trunk/extragear/multimedia/amarok/src/App.cpp #855507:855508
@@ -600,7 +600,7 @@
case Phonon::PlayingState:
if ( oldState == Phonon::PausedState )
Amarok::OSD::instance()->OSDWidget::show( i18nc( "state, as in playing", \
"Play" ) );
- if ( !track->prettyName().isEmpty() )
+ if ( track && !track->prettyName().isEmpty() )
// //TODO: write a utility function somewhere
mainWindow()->setPlainCaption( i18n( "%1 - %2 - %3", track->artist() ? \
track->artist()->prettyName() : i18n( "Unknown"), track->prettyName(), AMAROK_CAPTION \
) ); break;
@@ -624,7 +624,7 @@
DEBUG_BLOCK
Meta::TrackPtr currentTrack = The::engineController()->currentTrack();
- if( !track )
+ if( !currentTrack )
return;
Amarok::OSD::instance()->show( currentTrack );
if( !trackChanged )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic