diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index f3233fb24..e360cd588 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -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(); }