summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2002-11-10 16:03:09 (UTC)
committer llornkcor <llornkcor>2002-11-10 16:03:09 (UTC)
commitcb4821802897bbf6e06be3b2608656e05db68b96 (patch) (side-by-side diff)
tree672351f10dfb9a6bd13f753d876c975a39b74270 /noncore
parentee6938139a5f8f24da901ab5a41930a98af00d44 (diff)
downloadopie-cb4821802897bbf6e06be3b2608656e05db68b96.zip
opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.gz
opie-cb4821802897bbf6e06be3b2608656e05db68b96.tar.bz2
display loaded playlist in caption at start
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp
index 8b0f501..1f19b30 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp
@@ -62,7 +62,10 @@ MediaPlayer::MediaPlayer( QObject *parent, const char *name )
volControl = new VolumeControl;
xineControl = new XineControl();
- playList->setCaption(tr("OpiePlayer"));
+ Config cfg( "OpiePlayer" );
+ cfg.setGroup("PlayList");
+ QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default");
+ playList->setCaption( tr( "OpiePlayer: " ) + QFileInfo(currentPlaylist).baseName() );
}
MediaPlayer::~MediaPlayer() {