diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-14 20:41:36 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-14 20:41:36 -0500 |
| commit | 168b6eb112be70fb8c44f30a82a950bd20888b93 (patch) | |
| tree | c3344a998b25fd7ab493339490c78f9fe4d8e84e /combobox.go | |
| parent | 7d80fdd0f1e5ce7d0a88b29d26237c864a43e39a (diff) | |
Handled all controls's created field.
Diffstat (limited to 'combobox.go')
| -rw-r--r-- | combobox.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/combobox.go b/combobox.go index 7bd666c..5080d38 100644 --- a/combobox.go +++ b/combobox.go @@ -33,7 +33,10 @@ func (c *Combobox) Selection() (string, error) { c.lock.Lock() defer c.lock.Unlock() - return c.sysData.text() + if c.created { + return c.sysData.text() + } + return "", nil } // TODO SelectedIndex @@ -52,6 +55,7 @@ func (c *Combobox) make(window *sysData) (err error) { return err } } + c.created = true return nil } |
