Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Default Qt Client
- Updated Qt to 6.10.1 on Windows
- Option to disable sound device detection notifications in statusbar events
- Ukranian translation
- Speak Client Statistics now refreshes ping on Ctrl+T
- Fixed bug where the value of the Show chat history as list view instead of text edit setting was sometimes deleted
- Fixed bug where only first resolved IP-address was used for connection attempt
Android Client
Expand Down
17 changes: 17 additions & 0 deletions Client/qtTeamTalk/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,9 @@ void MainWindow::clienteventCmdProcessing(int cmdid, bool complete)
case CMD_COMPLETE_LOGIN:
cmdCompleteLoggedIn(TT_GetMyUserID(ttInst));
break;
case CMD_COMPLETE_PING:
speakClientStats();
break;
case CMD_COMPLETE_JOINCHANNEL:
break;
case CMD_COMPLETE_LIST_CHANNELBANS:
Expand Down Expand Up @@ -8044,6 +8047,20 @@ void MainWindow::closeEvent(QCloseEvent *event)
}

void MainWindow::slotSpeakClientStats(bool /*checked = false*/)
{
if (TT_GetFlags(ttInst) & CLIENT_CONNECTED)
{
int cmdid = TT_DoPing(ttInst);
if (cmdid > 0)
{
m_commands.insert(cmdid, CMD_COMPLETE_PING);
return;
}
}
speakClientStats();
}

void MainWindow::speakClientStats()
{
ClientStatistics stats = {};
TT_GetClientStatistics(ttInst, &stats);
Expand Down
4 changes: 3 additions & 1 deletion Client/qtTeamTalk/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ enum CommandComplete
CMD_COMPLETE_SUBSCRIBE,
CMD_COMPLETE_UNSUBSCRIBE,

CMD_COMPLETE_SAVECONFIG
CMD_COMPLETE_SAVECONFIG,
CMD_COMPLETE_PING
};

enum TimerEvent
Expand Down Expand Up @@ -246,6 +247,7 @@ class MainWindow : public QMainWindow
/* 'mode' is mask of 'AudioStorageMode' */
void updateAudioStorage(bool enable, AudioStorageMode mode);
void updateAudioConfig();
void speakClientStats();
bool sendDesktopWindow();
void restartSendDesktopWindowTimer();
void sendDesktopCursor();
Expand Down
Loading