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