[pim/itinerary] src/app: Highlight all vehicle sections that contain seat reservations

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4bd8d3fafc64da933ecb20b29bf1a7f54032f85e by Volker Krause.
Committed on 24/07/2026 at 11:48.
Pushed by vkrause into branch 'master'.

Highlight all vehicle sections that contain seat reservations

M  +1    -1    src/app/TrainPage.qml
M  +1    -1    src/app/VehicleLayoutPage.qml

https://invent.kde.org/pim/itinerary/-/commit/4bd8d3fafc64da933ecb20b29bf1a7f54032f85e

diff --git a/src/app/TrainPage.qml b/src/app/TrainPage.qml
index ddbf2133c..6fce75a8f 100644
--- a/src/app/TrainPage.qml
+++ b/src/app/TrainPage.qml
@@ -37,7 +37,7 @@ PublicTransportPage {
         id: vehicleLayoutPage
         VehicleLayoutPage {
             publicTransportManager: root.controller.liveDataManager.publicTransportManager
-            selectedVehicleSection: root.reservation.reservedTicket.ticketedSeat.seatSection
+            selectedVehicleSection: root.seatSectionString
             selectedClasses: root.reservation.reservedTicket.ticketedSeat.seatingType
             seat: root.seatString
 
diff --git a/src/app/VehicleLayoutPage.qml b/src/app/VehicleLayoutPage.qml
index e38235e7c..d2128fbc7 100644
--- a/src/app/VehicleLayoutPage.qml
+++ b/src/app/VehicleLayoutPage.qml
@@ -198,7 +198,7 @@ Kirigami.ScrollablePage {
         width: parent.width
 
         model: vehicleModel
-        highlightedVehicleSection: root.selectedVehicleSection
+        highlightedVehicleSection: root.selectedVehicleSection.split(/,\s/)
         higlightedClassTypes: root.selectedClassTypes
 
         onVehicleSectionTapped: (section) => {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.