From 3e7e2d81703bf8676d1db638fd3c940466f9ee4e Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 5 Jan 2012 16:35:44 +0100 Subject: [PATCH] fixed start on laod media player issue --- src/gui/UBMediaPlayer.cpp | 1 - src/gui/UBTeacherBarWidget.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/gui/UBMediaPlayer.cpp b/src/gui/UBMediaPlayer.cpp index 17770378..421f891b 100644 --- a/src/gui/UBMediaPlayer.cpp +++ b/src/gui/UBMediaPlayer.cpp @@ -242,7 +242,6 @@ void UBMediaPlayer::setFile(const QString &fileName) { setWindowTitle(fileName.right(fileName.length() - fileName.lastIndexOf('/') - 1)); m_MediaObject.setCurrentSource(Phonon::MediaSource(fileName)); - m_MediaObject.play(); } void UBMediaPlayer::setLocation(const QString& location) diff --git a/src/gui/UBTeacherBarWidget.cpp b/src/gui/UBTeacherBarWidget.cpp index 1b16d44f..688e2147 100644 --- a/src/gui/UBTeacherBarWidget.cpp +++ b/src/gui/UBTeacherBarWidget.cpp @@ -541,7 +541,6 @@ void UBTeacherBarDropMediaZone::addMedia(QString pMediaPath) else if(mimeType.contains("video") || mimeType.contains("audio")){ UBMediaPlayer* mediaPlayer = new UBMediaPlayer(); mediaPlayer->setFile(pMediaPath); - mediaPlayer->playPause(); mWidget->addWidget(mediaPlayer); mWidgetList << mediaPlayer; }