From 308df358bb8983ea685b2142d03583c8996431d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sami=20R=C3=A4m=C3=B6?= Date: Thu, 26 Aug 2010 13:29:22 +0300 Subject: [PATCH] Fixed the RoutingPanel to work also with routes coming from the FriendListPanel --- src/ui/routingpanel.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ui/routingpanel.cpp b/src/ui/routingpanel.cpp index 229875a..daed223 100644 --- a/src/ui/routingpanel.cpp +++ b/src/ui/routingpanel.cpp @@ -218,6 +218,17 @@ void RoutingPanel::setRoute(Route &route) m_routeWaypointListView->scrollToTop(); + // route might come from FriendListPanel's route to friend button, so we have to + // check the routing button without emitting new routing request + blockSignals(true); + m_routeButton->setEnabled(true); + m_routeButton->setChecked(true); + blockSignals(false); + m_searchLocationButton->setChecked(false); + // search location button might be already false, so we have to make sure the + // toggle action handler is caller every time + searchLocationButtonToggled(false); + emit showPanelRequested(this); } -- 1.7.9.5