Skip to content

fixed teamtalk crash when you opened context menu on empty server list#3365

Open
amirmahdifard wants to merge 1 commit into
BearWare:masterfrom
amirmahdifard:serverlistCrashfix
Open

fixed teamtalk crash when you opened context menu on empty server list#3365
amirmahdifard wants to merge 1 commit into
BearWare:masterfrom
amirmahdifard:serverlistCrashfix

Conversation

@amirmahdifard

@amirmahdifard amirmahdifard commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

when the server list is completely empty and you have no selection and you open the context menu on it, causes crash. This is because in 5.23, someone incorrectly handled this that the code would grab the nul.
But in 5.22 and older, the validations were correctly seperated, so the code didn't crash, And we would stil have the possible options.
protected the crash cause behind safe gard, like the same stile as the other views.
No Crash: If the list is empty, the && stops the code from looking for [srcIndex.row()].

@amirmahdifard
amirmahdifard force-pushed the serverlistCrashfix branch 2 times, most recently from 2973cfb to b2b30fa Compare July 13, 2026 23:18
@amirmahdifard
amirmahdifard requested a review from a team as a code owner July 18, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant