X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=playlistmainwindow.cpp;h=ca4ce3bac04e9878df3486b499b5aa92fddfef6b;hb=ed6b3f2ed33dfb5300c9f2df401fd5b4c633b5de;hp=61a47171cc8b8c6c668df19b51a71dac5b9f97cf;hpb=9637e172411142f0973de244835a1f6f1d0cb244;p=vlc-remote diff --git a/playlistmainwindow.cpp b/playlistmainwindow.cpp index 61a4717..ca4ce3b 100644 --- a/playlistmainwindow.cpp +++ b/playlistmainwindow.cpp @@ -138,8 +138,6 @@ void PlayListMainWindow::onClear() { connect(mNetManager,SIGNAL(finished(QNetworkReply *)),this,SLOT(requestPlayList())); } void PlayListMainWindow::requestPlayList() { - mContents->clear(); - ui->listWidget->clear(); mResponse.clear(); ui->removeButton->setDisabled(true); ui->playButton->setDisabled(true); @@ -177,6 +175,7 @@ void PlayListMainWindow::finished(QNetworkReply * reply) { } void PlayListMainWindow::parseXmlPlayList() { + mContents->clear(); QDomDocument doc; doc.setContent(this->mResponse); QDomElement docElem = doc.documentElement(); @@ -346,6 +345,7 @@ VlcPlayListElementSimple PlayListMainWindow::getElementFromText(QString text) { } void PlayListMainWindow::updateList() { + ui->listWidget->clear(); int ct = this->mContents->count(); if (0 < ct) { QIcon icon_audio = QIcon::fromTheme("general_audio_file");