Added ListView::listItemSelectionChanged signal. Added deselection of
[situare] / src / ui / friendlistpanel.cpp
index efa5a0b..b94329e 100644 (file)
@@ -97,7 +97,7 @@ FriendListPanel::FriendListPanel(QWidget *parent)
     connect(m_routeButton, SIGNAL(clicked()),
             this, SLOT(routeToSelectedFriend()));
 
-    connect(m_friendListView, SIGNAL(clicked(QModelIndex)),
+    connect(m_friendListView, SIGNAL(listItemSelectionChanged()),
             this, SLOT(setRouteButtonDisabled()));
 
     /// @todo remove old filterLayout when new panel are merged