diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-25 14:51:10 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-27 06:43:18 -0400 |
commit | 64453893a0d8f88f4c70b5606d133b1acc68d10b (patch) | |
tree | d7d448d202cbce6e9a18cd856fb46198135c1956 /qt-ui/locationinformation.h | |
parent | 94d05d1cb6c5a63540a82e32056b89456e494fcb (diff) | |
download | subsurface-64453893a0d8f88f4c70b5606d133b1acc68d10b.tar.gz |
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>
Diffstat (limited to 'qt-ui/locationinformation.h')
-rw-r--r-- | qt-ui/locationinformation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 0d1a995dd..2905a11bc 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -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; |