| 586 | } |
| 587 | |
| 588 | void ThreadRemoved(TextThread& thread) |
| 589 | { |
| 590 | QMetaObject::invokeMethod(This, [ttString = TextThreadString(thread)] |
| 591 | { |
| 592 | int threadIndex = ui.ttCombo->findText(ttString, Qt::MatchStartsWith); |
| 593 | if (threadIndex == ui.ttCombo->currentIndex()) ViewThread(0); |
| 594 | ui.ttCombo->removeItem(threadIndex); |
| 595 | }, Qt::BlockingQueuedConnection); |
| 596 | } |
| 597 | |
| 598 | bool SentenceReceived(TextThread& thread, std::wstring& sentence) |
| 599 | { |
nothing calls this directly
no test coverage detected