diff options
Diffstat (limited to 'lumina-fm/widgets/MultimediaWidget.cpp')
-rw-r--r-- | lumina-fm/widgets/MultimediaWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-fm/widgets/MultimediaWidget.cpp b/lumina-fm/widgets/MultimediaWidget.cpp index 9622a97b..406f9098 100644 --- a/lumina-fm/widgets/MultimediaWidget.cpp +++ b/lumina-fm/widgets/MultimediaWidget.cpp @@ -47,9 +47,12 @@ MultimediaWidget::~MultimediaWidget(){ // ================ // PUBLIC SLOTS // ================ -void MultimediaWidget::LoadMultimedia(QList<LFileInfo> list){ +void MultimediaWidget::ClearPlaylist(){ mediaObj->stop(); ui->combo_player_list->clear(); +} + +void MultimediaWidget::LoadMultimedia(QList<LFileInfo> list){ for(int i=0; i<list.length(); i++){ if(list[i].isAVFile()){ ui->combo_player_list->addItem(list[i].fileName(), list[i].absoluteFilePath() ); } } |