]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Settings: remove unnecessary selection code
authortobtoht <tob@featherwallet.org>
Wed, 1 Mar 2023 22:04:39 +0000 (23:04 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 1 Mar 2023 22:04:39 +0000 (23:04 +0100)
src/SettingsDialog.cpp

index 227ad3b5e9fc6b4b817dad77c7b36baa84bc5bb5..dcf68803baf74cfc4ae2dd05beb146ccfe9905c9 100644 (file)
@@ -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) {