aboutsummaryrefslogtreecommitdiff
path: root/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lobby.cpp')
-rw-r--r--lobby.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/lobby.cpp b/lobby.cpp
index e73345c1..e9ee7b30 100644
--- a/lobby.cpp
+++ b/lobby.cpp
@@ -3,6 +3,7 @@
#include "debug_functions.h"
#include "aoapplication.h"
#include "networkmanager.h"
+#include "aosfxplayer.h"
#include <QDebug>
#include <QScrollBar>
@@ -205,13 +206,22 @@ void Lobby::on_add_to_fav_pressed()
void Lobby::on_add_to_fav_released()
{
- ui_add_to_fav->set_image("addtofav.png");
+ AOSfxPlayer *sfx = new AOSfxPlayer(this, ao_app);
+
+ QString path = ao_app->get_music_path("Mystery Skulls - Money.mp3");
+
+ qDebug() << "path: " << path;
+ sfx->play(path);
+
+ ui_add_to_fav->set_image("addtofav.png");
+ /*
//you cant add favorites from favorites m8
if (!public_servers_selected)
return;
ao_app->add_favorite_server(ui_server_list->currentRow());
+ */
}
void Lobby::on_connect_pressed()