diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index 86d66288c7..f41150ec14 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -157,9 +157,9 @@ bool SearchPanel::TryChangeMapStyleCmd(QString const & str) // Hook for shell command on change map style bool const isDark = (str == "mapstyle:dark") || (str == "?dark"); bool const isLight = isDark ? false : (str == "mapstyle:light") || (str == "?light"); - bool const isClear = isDark || isLight ? false : (str == "?newstyle"); + bool const isOld = isDark || isLight ? false : (str == "?oldstyle"); - if (!isDark && !isLight && !isClear) + if (!isDark && !isLight && !isOld) return false; // close Search panel @@ -167,7 +167,7 @@ bool SearchPanel::TryChangeMapStyleCmd(QString const & str) parentWidget()->hide(); // change color scheme for the Map activity - MapStyle const mapStyle = isDark ? MapStyleDark : (isClear ? MapStyleClear : MapStyleLight); + MapStyle const mapStyle = isOld ? MapStyleLight : (isDark ? MapStyleDark : MapStyleClear); m_pDrawWidget->SetMapStyle(mapStyle); return true;