Renamed ListView::m_previousItem and RoutingPanel::anyPanelClosed().
[situare] / src / ui / routingpanel.cpp
index 49b611e..f730136 100644 (file)
@@ -80,7 +80,7 @@ RoutingPanel::RoutingPanel(QWidget *parent)
             this, SIGNAL(requestSearchLocation()));
 }
 
-void RoutingPanel::anyPanelClosed()
+void RoutingPanel::clearListsSelections()
 {
     qDebug() << __PRETTY_FUNCTION__;
 
@@ -96,9 +96,7 @@ void RoutingPanel::hideEvent(QHideEvent *event)
 
     QWidget::hideEvent(event);
 
-    m_locationListView->clearItemSelection();
-    m_routeWaypointListView->clearItemSelection();
-    setRouteButtonDisabled();
+    clearListsSelections();
 }
 
 void RoutingPanel::populateLocationListView(const QList<Location> &locations)