diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 21:06:50 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 21:06:50 +0100 |
commit | 9237504b3308e94462fe90fa4595bc603c22f951 (patch) | |
tree | b84240c68dd47ceff3593aa36e71ac6b0292ced5 /src | |
parent | 26b883b3a92f67d152d7a3752d87c369f942f743 (diff) |
disable track width slider until a track is loaded
Diffstat (limited to 'src')
-rw-r--r-- | src/gipfel.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 14f4418..c92063b 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -93,7 +93,9 @@ void open_cb() { void track_cb() { char *file = fl_file_chooser("Track File?", NULL, NULL); - gipf->load_track(file); + if (gipf->load_track(file) == 0) { + s_track_width->activate(); + } } void save_cb() { @@ -268,7 +270,7 @@ create_control_window() { s_track_width->slider(FL_UP_BOX); s_track_width->callback((Fl_Callback*)track_width_cb); s_track_width->align(FL_ALIGN_TOP); - + s_track_width->deactivate(); // Viewpoint Stuff b_viewpoint = new Fl_Box(FL_DOWN_BOX, 30, 255, 300, 80, ""); |