From 562b931bb6f3d36db4f2738f5771396b9b6a8f6e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 22 May 2013 16:15:40 +0000 Subject: some optimizations git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3479 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistitem.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/qmmpui/playlistitem.cpp b/src/qmmpui/playlistitem.cpp index b6cdf02d9..4f32f0e28 100644 --- a/src/qmmpui/playlistitem.cpp +++ b/src/qmmpui/playlistitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -146,12 +146,8 @@ void PlayListItem::readMetadata() { MetaDataFormatter f(QmmpUiSettings::instance()->format()); m_title = f.parse(this); - //TODO rewrite this if (m_title.isEmpty()) - { - if (value(Qmmp::URL).contains('/')) - m_title = value(Qmmp::URL).split('/',QString::SkipEmptyParts).takeLast (); - } + m_title = value(Qmmp::URL).section('/',-1); if (m_info) delete m_info; m_info = 0; -- cgit v1.2.3-13-gbd6f