# HG changeset patch # User sheepluva # Date 1317133617 -7200 # Node ID d3751a18cecb193c174dabc76c00faf60fcf2fb6 # Parent 5e3e7d19bdb5d0cbdd19b8bd57c5c84b2631ce8b use currentItemChanged signal instead of itemSelectionChanged - since the latter is always one item behind if you hold down the mousebutton and move the cursor through the list diff -r 5e3e7d19bdb5 -r d3751a18cecb QTfrontend/pagetraining.cpp --- a/QTfrontend/pagetraining.cpp Tue Sep 27 16:14:35 2011 +0200 +++ b/QTfrontend/pagetraining.cpp Tue Sep 27 16:26:57 2011 +0200 @@ -96,8 +96,9 @@ void PageTraining::connectSignals() { - connect(lstMissions, SIGNAL(itemSelectionChanged()), this, SLOT(updateInfo())); - connect(lstMissions, SIGNAL(itemDoubleClicked(QListWidgetItem *)), this, SLOT(startSelected())); + connect(lstMissions, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)), this, SLOT(updateInfo())); + connect(lstMissions, SIGNAL(clicked()), this, SLOT(updateInfo())); + connect(lstMissions, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(startSelected())); connect(btnPreview, SIGNAL(clicked()), this, SLOT(startSelected())); connect(btnStart, SIGNAL(clicked()), this, SLOT(startSelected())); }