diff options
author | vng <viktor.govako@gmail.com> | 2012-05-15 10:54:58 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:38:21 +0300 |
commit | 2daef24bc1b7bfa388766e32f78c93e3764f0cf1 (patch) | |
tree | 56ec6cdff9757b2fdc7d927702f39f926c581730 /qt | |
parent | bff0fab8282df6cda8ce9b9cfbfd5c2269b6c44c (diff) |
Make locality check faster.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/draw_widget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp index 91760156e8..b3c05b7594 100644 --- a/qt/draw_widget.cpp +++ b/qt/draw_widget.cpp @@ -337,10 +337,10 @@ namespace qt Framework::AddressInfo info; m_framework->GetAddressInfo(m_framework->PtoG(m2::PointD(pt.x(), pt.y())), info); - add_string(menu, info.m_country); - add_string(menu, info.m_city); - add_string(menu, info.m_street); - add_string(menu, info.m_name); + if (!info.m_name.empty()) + add_string(menu, info.m_name); + add_string(menu, info.FormatAddress()); + add_string(menu, info.FormatTypes()); menu.exec(pt); } |