aboutsummaryrefslogtreecommitdiff
path: root/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lobby.cpp')
-rw-r--r--lobby.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/lobby.cpp b/lobby.cpp
index 8bc67bd..836c5ac 100644
--- a/lobby.cpp
+++ b/lobby.cpp
@@ -133,10 +133,7 @@ void Lobby::set_size_and_pos(QWidget *p_widget, QString p_identifier)
if (design_ini_result.width < 0 || design_ini_result.height < 0)
{
- //at this point it's pretty much game over
- //T0D0: add message box
- qDebug() << "CRITICAL ERROR: NO SUITABLE DATA FOR SETTING " << p_identifier;
- ao_app->quit();
+ call_error(" could not find \"" + p_identifier + "\" in lobby_design.ini");
}
}
@@ -158,6 +155,11 @@ QString Lobby::get_chatlog()
return return_value;
}
+int Lobby::get_selected_server()
+{
+ return ui_server_list->currentRow();
+}
+
void Lobby::on_public_servers_clicked()
{
ui_public_servers->set_image("publicservers_selected.png");
@@ -283,6 +285,10 @@ void Lobby::on_chatfield_return_pressed()
void Lobby::list_servers()
{
+ public_servers_selected = true;
+ ui_favorites->set_image("favorites.png");
+ ui_public_servers->set_image("publicservers_selected.png");
+
ui_server_list->clear();
for (server_type i_server : ao_app->get_server_list())