From 169ba7b277ece4284e2f46677d3646838cc42e68 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 10 Oct 2007 07:11:56 +0000 Subject: read tags before plaing git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@166 90c681e8-e032-0410-971d-27865f9a5e38 --- src/mainwindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1e8280875..2a6902e2c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -166,6 +166,8 @@ void MainWindow::play() return; m_equalizer->loadPreset(m_playListModel->currentItem()->fileName()); + m_playListModel->currentItem()->updateTags(); + m_playlist->listWidget()->updateList(); QString s = m_playListModel->currentItem()->path(); if (s.isEmpty()) return; @@ -294,12 +296,6 @@ void MainWindow::updateEQ() m_core->setEQEnabled(m_equalizer->isEQEnabled()); } -void MainWindow::updatePreset() -{ - //if(m_playListModel->currentItem()) - // m_equalizer->setPresetName(m_playListModel->currentItem()->fileName()); -} - void MainWindow::showOutputState(const OutputState &st) { @@ -808,8 +804,6 @@ void MainWindow::handleCloseRequest() QApplication::closeAllWindows(); } - - void MainWindow::addUrl( ) { AddUrlDialog::popup(this,m_playListModel); -- cgit v1.2.3-13-gbd6f