diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 22:33:19 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 22:33:19 +0200 |
commit | 84802dd00c14ac98164fc9a7bfa1990cbf36d91c (patch) | |
tree | 824b08a52a2b918346735f29b24afeb19ca0bca3 /src/choose_hill.cxx | |
parent | 4c001eebef3a0c8201293e2dbfb27c2aa65c0591 (diff) |
Fl_Search_Chooser cleanup
Diffstat (limited to 'src/choose_hill.cxx')
-rw-r--r-- | src/choose_hill.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/choose_hill.cxx b/src/choose_hill.cxx index 879e18a..1d86bde 100644 --- a/src/choose_hill.cxx +++ b/src/choose_hill.cxx @@ -19,21 +19,20 @@ choose_hill(const Hills *hills, const char *l) { for (int i=0; i<h_sort->get_num(); i++) { Hill *m = h_sort->get(i); - if (m->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) { + if (m->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) continue; - } + sc->add(m->name, m); } delete h_sort; sc->show(); - while (sc->shown()) { + + while (sc->shown()) Fl::wait(); - } ret = (Hill*) sc->data(); - delete(sc); return ret; |