smplayer include changes fixed

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@367 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-02-29 18:52:27 +00:00
parent fda0111d9b
commit 71e78fa852

View File

@ -33,10 +33,7 @@
#include "HelpDialog.h" #include "HelpDialog.h"
#include "games/qbackgammon/bgwindow.h" #include "games/qbackgammon/bgwindow.h"
#include "toplevel.h" #include "smplayer.h"
#include "defaultgui.h"
#include "global.h"
#include "translator.h"
#include "Preferences/PreferencesWindow.h" #include "Preferences/PreferencesWindow.h"
#include "Settings/gsettingswin.h" #include "Settings/gsettingswin.h"
@ -591,14 +588,14 @@ void MainWindow::startqcheckers()
/** Shows smplayer */ /** Shows smplayer */
void MainWindow::showsmplayer() void MainWindow::showsmplayer()
{ {
static DefaultGui* smplayer = 0; static SMPlayer * smplayer = 0;
if (!smplayer) { if (smplayer == 0) {
global_init( "smplayer" ); smplayer = new SMPlayer(QString::null, this);
translator->load( pref->language );
smplayer = new DefaultGui(this);
} }
smplayer->show(); smplayer->gui()->show();
// Or
// smplayer->start();
//smplayer->show();
} }