Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/observatory/observatory.cpp
Show First 20 Lines • Show All 534 Lines • ▼ Show 20 Line(s) | 497 | { | |||
---|---|---|---|---|---|
535 | disconnect(getWeatherModel(), &Ekos::ObservatoryWeatherModel::ready, this, &Ekos::Observatory::initWeather); | 535 | disconnect(getWeatherModel(), &Ekos::ObservatoryWeatherModel::ready, this, &Ekos::Observatory::initWeather); | ||
536 | } | 536 | } | ||
537 | 537 | | |||
538 | void Observatory::shutdownWeather() | 538 | void Observatory::shutdownWeather() | ||
539 | { | 539 | { | ||
540 | weatherStatusTimer.stop(); | 540 | weatherStatusTimer.stop(); | ||
541 | setWeatherStatus(ISD::Weather::WEATHER_IDLE); | 541 | setWeatherStatus(ISD::Weather::WEATHER_IDLE); | ||
542 | enableWeather(false); | 542 | enableWeather(false); | ||
543 | // catch re-connect | ||||
544 | if (getWeatherModel() != nullptr) | ||||
545 | connect(getWeatherModel(), &Ekos::ObservatoryWeatherModel::ready, this, &Ekos::Observatory::initWeather); | ||||
546 | | ||||
543 | } | 547 | } | ||
544 | 548 | | |||
545 | 549 | | |||
546 | void Observatory::updateSensorGraph(QString label, QDateTime now, double value) | 550 | void Observatory::updateSensorGraph(QString label, QDateTime now, double value) | ||
547 | { | 551 | { | ||
548 | // we assume that labels are unique and use the full label as identifier | 552 | // we assume that labels are unique and use the full label as identifier | ||
549 | QString id = label; | 553 | QString id = label; | ||
550 | 554 | | |||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |