From 9a85b8beff474cb8c0a7044118428ee11ec91b53 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 8 Jun 2009 17:55:57 +0000 Subject: fixed text scroller and window titles git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@962 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ui/mainwindow.cpp') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4002f4fae..50c695d3c 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2008 by Ilya Kotov * + * Copyright (C) 2006-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -249,6 +249,10 @@ void MainWindow::showState(Qmmp::State state) //m_generalHandler->setState(General::Stopped); m_playlist->setTime(-1); m_titlebar->setTime(-1); + if (m_playlist->currentItem()) + setWindowTitle(m_playlist->currentItem()->text()); + else + setWindowTitle("Qmmp"); break; } } @@ -269,6 +273,8 @@ void MainWindow::showMetaData() { m_playlist->currentItem()->updateMetaData(m_core->metaData()); m_playlist->updateList(); + TextScroller::getPointer()->setText(m_playlist->currentItem()->text()); + setWindowTitle(m_playlist->currentItem()->text()); } } -- cgit v1.2.3-13-gbd6f