Merge pull request #312 from AttorneyOnline/fix-doubleclick
fix doubleclick server being buggy
This commit is contained in:
commit
2d398c3237
@ -46,6 +46,7 @@ public:
|
|||||||
void set_loading_value(int p_value);
|
void set_loading_value(int p_value);
|
||||||
|
|
||||||
bool public_servers_selected = true;
|
bool public_servers_selected = true;
|
||||||
|
bool doubleclicked = false;
|
||||||
|
|
||||||
~Lobby();
|
~Lobby();
|
||||||
|
|
||||||
|
@ -441,8 +441,9 @@ void Lobby::on_server_list_clicked(QTreeWidgetItem *p_item, int column)
|
|||||||
// doubleclicked on an item in the serverlist so we'll connect right away
|
// doubleclicked on an item in the serverlist so we'll connect right away
|
||||||
void Lobby::on_server_list_doubleclicked(QTreeWidgetItem *p_item, int column)
|
void Lobby::on_server_list_doubleclicked(QTreeWidgetItem *p_item, int column)
|
||||||
{
|
{
|
||||||
|
doubleclicked = true;
|
||||||
on_server_list_clicked(p_item, column);
|
on_server_list_clicked(p_item, column);
|
||||||
on_connect_released();
|
//on_connect_released();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Lobby::on_server_search_edited(QString p_text)
|
void Lobby::on_server_search_edited(QString p_text)
|
||||||
|
@ -212,6 +212,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
|
|
||||||
w_lobby->set_player_count(f_contents.at(0).toInt(),
|
w_lobby->set_player_count(f_contents.at(0).toInt(),
|
||||||
f_contents.at(1).toInt());
|
f_contents.at(1).toInt());
|
||||||
|
|
||||||
|
if (w_lobby->doubleclicked) {
|
||||||
|
send_server_packet(new AOPacket("askchaa#%"));
|
||||||
|
w_lobby->doubleclicked = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (header == "SI") {
|
else if (header == "SI") {
|
||||||
if (f_contents.size() != 3)
|
if (f_contents.size() != 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user