aboutsummaryrefslogtreecommitdiff
path: root/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lobby.cpp')
-rw-r--r--lobby.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lobby.cpp b/lobby.cpp
index 9a649be..8a98632 100644
--- a/lobby.cpp
+++ b/lobby.cpp
@@ -48,6 +48,8 @@ Lobby::Lobby(AOApplication *p_ao_app) : QMainWindow()
connect(ui_chatmessage, SIGNAL(returnPressed()), this, SLOT(on_chatfield_return_pressed()));
connect(ui_cancel, SIGNAL(clicked()), ao_app, SLOT(loading_cancelled()));
+ ui_connect->setEnabled(false);
+
set_widgets();
}
@@ -311,6 +313,8 @@ void Lobby::on_server_list_clicked(QModelIndex p_model)
ui_player_count->setText("Offline");
+ ui_connect->setEnabled(false);
+
ao_app->net_manager->connect_to_server(f_server);
}
@@ -371,6 +375,11 @@ void Lobby::set_player_count(int players_online, int max_players)
ui_player_count->setText(f_string);
}
+void Lobby::enable_connect_button()
+{
+ ui_connect->setEnabled(true);
+}
+
Lobby::~Lobby()
{