From e2c97ea102082201b0fca065c3d6116e12210f80 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sun, 8 Jan 2012 16:11:45 +0100 Subject: [PATCH] Remember preference between arrivals and departures --- application/stationschedulemodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/stationschedulemodel.cpp b/application/stationschedulemodel.cpp index 0629881..2c60082 100644 --- a/application/stationschedulemodel.cpp +++ b/application/stationschedulemodel.cpp @@ -50,6 +50,9 @@ StationScheduleModel::StationScheduleModel(const QString &name, QObject *parent) connect(provider, SIGNAL(stationScheduleReady(QByteArray,QUrl)), this, SLOT(parse(QByteArray,QUrl))); + + Settings *settings = Settings::instance(); + m_scheduleType = settings->showArrivalsPreferred() ? ArrivalSchedule : DepartureSchedule; } QString & StationScheduleModel::name() -- 1.7.9.5