Skip to content

Commit

Permalink
Attorney Online 2.11 Release Candidate 1 (#1026)
Browse files Browse the repository at this point in the history
* Version bump and minor fixes

* Remove unecessary headers

Thanks QtCreator
  • Loading branch information
Salanto authored Jul 21, 2024
1 parent 0c3a425 commit e82726b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/aoapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void AOApplication::destruct_courtroom()

QString AOApplication::get_version_string()
{
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION);
return QString::number(RELEASE) + "." + QString::number(MAJOR_VERSION) + "." + QString::number(MINOR_VERSION) + " RC1";
}

QString AOApplication::find_image(QStringList p_list)
Expand Down
4 changes: 2 additions & 2 deletions src/aoapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class AOApplication : public QObject
static QString get_version_string();

static const int RELEASE = 2;
static const int MAJOR_VERSION = 10;
static const int MINOR_VERSION = 1;
static const int MAJOR_VERSION = 11;
static const int MINOR_VERSION = 0;

void set_server_list(QVector<ServerInfo> &servers) { server_list = servers; }
QVector<ServerInfo> &get_server_list() { return server_list; }
Expand Down
2 changes: 1 addition & 1 deletion src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app)
initialize_evidence();

// TODO : Properly handle widget creation order.
// Good enough for 2.10
// Good enough for 2.11
ui_pair_list->raise();

construct_char_select();
Expand Down
1 change: 1 addition & 0 deletions src/packet_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ void AOApplication::server_packet_received(AOPacket packet)
else if (header == "FL")
{
m_serverdata.set_features(content);
w_courtroom->set_widgets();
log_to_demo = false;
}
else if (header == "PN")
Expand Down
6 changes: 3 additions & 3 deletions src/widgets/playerlistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void PlayerListWidget::onCustomContextMenuRequested(const QPoint &pos)
}
});

if (!m_is_authenticated)
if (m_is_authenticated)
{
QAction *kick_player_action = menu->addAction("Kick");
connect(kick_player_action, &QAction::triggered, this, [this, id, name] {
Expand Down Expand Up @@ -137,9 +137,9 @@ void PlayerListWidget::removePlayer(int playerId)
void PlayerListWidget::filterPlayerList()
{
int area_id = m_player_map.value(ao_app->client_id).area_id;
for (int i = 0; i < count(); ++i)
for (QListWidgetItem *item : qAsConst(m_item_map))
{
m_item_map[i]->setHidden(m_player_map[i].area_id != area_id);
item->setHidden(m_player_map[item->data(Qt::UserRole).toInt()].area_id != area_id);
}
}

Expand Down

0 comments on commit e82726b

Please sign in to comment.