connect(
ui->favoriteKeysetsWidget,
-// SIGNAL(itemActivated(QListWidgetItem *)),
- SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
+ SIGNAL(itemActivated(QListWidgetItem *)),
this,
SLOT(keysetSelectionChanged(QListWidgetItem *)),
Qt::QueuedConnection);
PIRKeysetWidgetItem *kwi = dynamic_cast<PIRKeysetWidgetItem *>(item);
if (!kwi) return; // Also need to say something here
+
+ if (currentKeyset == kwi->getID())
+ {
+ // We're already on that keyset, so nothing to do:
+ return;
+ }
currentKeyset = kwi->getID();
position,
QItemSelectionModel::ClearAndSelect);
+ keysetSelectionChanged(ui->favoriteKeysetsWidget->currentItem());
+
// Tell the user about the change:
QMaemo5InformationBox::information(
0,
position,
QItemSelectionModel::ClearAndSelect);
+ keysetSelectionChanged(ui->favoriteKeysetsWidget->currentItem());
+
// Tell the user about the change:
QMaemo5InformationBox::information(
0,