OTHER: get rid of XMMSHandler and update classes using it

This commit is contained in:
Thomas Frauendorfer 2008-11-04 19:50:28 +01:00
parent 786b745d55
commit 982660510a
33 changed files with 145 additions and 266 deletions

View file

@ -13,9 +13,12 @@
* GNU General Public License for more details.
*/
#include "XMMSHandler.h"
#include "BrowseModel.h"
#include "BrowseDialog.h"
#include "xclient.h"
#include "xcollection.h"
#include "application.h"
#include <QDialog>
#include <QSettings>
@ -169,12 +172,12 @@ BrowseDialog::navigateToPrevious ()
void
BrowseDialog::setPath (const QModelIndex &index)
{
XMMSHandler &handler = XMMSHandler::getInstance ();
XClient *client = App->client ();
BrowseModelItem *item = m_model->itemByIndex (index);
if (item->isDir ()) {
m_model->setPath (index);
} else {
handler.playlistAddURL (item->data("path"));
client->xcollection ()->playlistAddUrl (item->data("path"));
}
}