From b23e96728b3c8080d454100fb7db53ab46666e4e Mon Sep 17 00:00:00 2001 From: David Skoland Date: Sat, 28 Jan 2017 12:43:20 +0100 Subject: added server name in window title --- lobby.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lobby.cpp') diff --git a/lobby.cpp b/lobby.cpp index 8bc67bd..81c79cd 100644 --- a/lobby.cpp +++ b/lobby.cpp @@ -158,6 +158,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"); -- cgit From ab321a4a7af042eed2b9cb7c82fe8345a9d7b594 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Sat, 28 Jan 2017 14:47:23 +0100 Subject: misc --- lobby.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lobby.cpp') diff --git a/lobby.cpp b/lobby.cpp index 81c79cd..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"); } } @@ -288,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()) -- cgit