| 173 | } |
| 174 | |
| 175 | static void openSettingsDialog() |
| 176 | { |
| 177 | auto selectedRows = |
| 178 | tabWidget->Table()->selectionModel()->selectedRows(); |
| 179 | if (selectedRows.empty()) { |
| 180 | return; |
| 181 | } |
| 182 | |
| 183 | auto cell = tabWidget->Table()->item(selectedRows.last().row(), 0); |
| 184 | if (!cell) { |
| 185 | return; |
| 186 | } |
| 187 | |
| 188 | auto weakToken = GetWeakTwitchTokenByQString(cell->text()); |
| 189 | auto token = weakToken.lock(); |
| 190 | if (!token) { |
| 191 | return; |
| 192 | } |
| 193 | |
| 194 | TwitchTokenSettingsDialog::AskForSettings(GetSettingsWindow(), |
| 195 | *token.get()); |
| 196 | updateConnectionStatus(tabWidget->Table()); |
| 197 | } |
| 198 | |
| 199 | static const QStringList headers = |
| 200 | QStringList() |
nothing calls this directly
no test coverage detected