QTfrontend/hwform.cpp
changeset 6166 701c5b8fac56
parent 6165 6fe3e922246e
child 6167 728cabee2c9f
--- a/QTfrontend/hwform.cpp	Fri Oct 21 07:00:49 2011 +0200
+++ b/QTfrontend/hwform.cpp	Fri Oct 21 08:03:42 2011 +0200
@@ -98,6 +98,15 @@
 HWForm::HWForm(QWidget *parent, QString styleSheet)
   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
 {
+    // set music track
+    QFile * tmpFile =
+            HWDataManager::instance().findFileForRead("Music/main_theme.ogg");
+
+    SDLInteraction::instance().setMusicTrack(tmpFile->fileName());
+
+    // this QFile isn't needed any further
+    delete tmpFile;
+
 #ifdef USE_XFIRE
     xfire_init();
 #endif