summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 18:46:52 (UTC)
committer llornkcor <llornkcor>2002-11-10 18:46:52 (UTC)
commit6078687cb1e389751503ae171ed1bea72846a4de (patch) (side-by-side diff)
tree5d725ae35ece948a9184f89c6aa7fb3a89a5c469
parent49e5bbbd35bef879faca0d680f1c4d64a61b7b32 (diff)
downloadopie-6078687cb1e389751503ae171ed1bea72846a4de.zip
opie-6078687cb1e389751503ae171ed1bea72846a4de.tar.gz
opie-6078687cb1e389751503ae171ed1bea72846a4de.tar.bz2
added must restart messagebox when changing skins
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 86130d5..040ef71 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -51,16 +51,18 @@
//only needed for the random play
#include <stdlib.h>
#include "audiowidget.h"
#include "videowidget.h"
extern MediaPlayerState *mediaPlayerState;
+// extern AudioWidget *audioUI;
+// extern VideoWidget *videoUI;
QString audioMimes ="audio/mpeg;audio/x-wav;audio/x-ogg";
// no m3u's here please
PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
: PlayListWidgetGui( parent, name, fl ) {
d->tbAddToList = new ToolButton( bar, tr( "Add to Playlist" ),
@@ -292,17 +294,17 @@ void PlayListWidget::addAllVideoToList() {
writeCurrentM3u();
}
void PlayListWidget::setDocument( const QString& fileref ) {
qDebug( "<<<<<<<<set document>>>>>>>>>> "+fileref );
fromSetDocument = TRUE;
if ( fileref.isNull() ) {
- QMessageBox::critical( 0, tr( "Invalid File" ),
+ QMessageBox::warning( this, tr( "Invalid File" ),
tr( "There was a problem in getting the file." ) );
return;
}
clearList();
if( fileref.find( "m3u", 0, TRUE) != -1 ) { //is m3u
readm3u( fileref );
} else if( DocLnk( fileref).file().find( "m3u", 0, TRUE) != -1 ) {
@@ -1058,17 +1060,19 @@ void PlayListWidget::skinsMenuActivated( int item ) {
for( int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
skinsMenu->setItemChecked( i, FALSE );
}
skinsMenu->setItemChecked( item, TRUE );
Config cfg( "OpiePlayer" );
cfg.setGroup("Options");
cfg.writeEntry("Skin", skinsMenu->text( item ) );
-}
+ QMessageBox::warning( this, tr( "OpiePlayer" ),
+ tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) );
+}
int PlayListWidget::whichList() {
return tabWidget->currentPageIndex();
}
QString PlayListWidget::currentFileListPathName() {
switch (whichList()) {
case 1: