From 54ca63ea20769f1bcfdbf0909ae86f5a64778e59 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Tue, 15 Sep 2015 18:30:01 +0300 Subject: [PATCH] Qt: use new secret commands --- qt/search_panel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;