diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index 95f198b2f..bfe869ae0 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -584,15 +584,14 @@ void MainWindow::startqcheckers() /** Shows smplayer */ void MainWindow::showsmplayer() -{ - static SMPlayer * smplayer = 0; - +{ + static SMPlayer * smplayer = 0; + if (smplayer == 0) { - smplayer = new SMPlayer(QString::null, this); - } + smplayer = new SMPlayer(QString::null, this); + /*connect(smplayer->gui(), SIGNAL(quitSolicited()), + smplayer->gui(), SLOT(hide()));*/ + } + smplayer->gui()->show(); - smplayer->gui()->show(); - // Or - // smplayer->start(); - //smplayer->show(); }