Fix problem with utf-8 charactes in playlist names

If a playlist had utf-8 characters in it's name, promoe couldn't switch
to it.
Also move another function from XMMSHandler to class in lib
This commit is contained in:
Thomas Frauendorfer 2008-07-02 19:25:57 +02:00
parent d1a98b5367
commit c0ca792481
8 changed files with 14 additions and 15 deletions

View file

@ -185,7 +185,7 @@ bool
XCollection::setActivePlaylist (QString name) {
if (!m_client->isConnected ()) return false;
m_client->playlist ()->load (name.toStdString ());
m_client->playlist ()->load (XClient::qToStd (name));
return true;
}

View file

@ -96,6 +96,15 @@ XPlayback::next ()
m_client->playback ()->tickle ();
}
void
XPlayback::setPos (int pos)
{
if (!m_client->isConnected ()) return;
m_client->playlist ()->setNext (pos) ();
m_client->playback ()->tickle () ();
}
/*
* Seeking
*/

View file

@ -41,6 +41,7 @@ class XPlayback : public QObject {
void stop ();
void prev ();
void next ();
void setPos (int pos);
void seekMs (uint milliseconds);
void seekMsRel (int milliseconds);