mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Settings: remove unnecessary selection code
This commit is contained in:
@@ -372,11 +372,7 @@ void Settings::setupThemeComboBox() {
|
||||
}
|
||||
|
||||
void Settings::setSelection(int index) {
|
||||
// You'd really think there is a better way
|
||||
QListWidgetItem *item = ui->selector->item(index);
|
||||
QModelIndex idx = ui->selector->indexFromItem(item);
|
||||
ui->selector->setCurrentRow(index);
|
||||
ui->selector->selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
|
||||
}
|
||||
|
||||
void Settings::enableWebsocket(bool enabled) {
|
||||
|
||||
Reference in New Issue
Block a user