Do not set text on the Location LineEdit

Since the location is only true with a valid uuid, set the
uuid on it, it will search for a valid name and set there.
this fixes a few inconsistencies handling  the locations.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-09-25 14:51:10 -03:00 committed by Dirk Hohndel
parent 94d05d1cb6
commit 64453893a0
3 changed files with 21 additions and 6 deletions

View file

@ -90,6 +90,7 @@ public:
DiveSiteType currDiveSiteType() const;
uint32_t currDiveSiteUuid() const;
void fixPopupPosition();
void setCurrentDiveSiteUuid(uint32_t uuid);
signals:
void diveSiteSelected(uint32_t uuid);
@ -102,6 +103,7 @@ protected:
void showPopup();
private:
using QLineEdit::setText;
DiveLocationFilterProxyModel *proxy;
DiveLocationModel *model;
DiveLocationListView *view;