summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-24 14:02:56 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-24 14:02:56 +0000
commit262321f5e61bb801b6e169e697d9a716cfb0c439 (patch)
treedbcfc4bcd88b7bae8a5f9d4a1d1311a750508320 /src/Fl_File_Chooser.cxx
parentfc7facb5e98a38d2e7a4776e6e91c9c2d301c877 (diff)
Fix cancel bug in file chooser with multiple-selection mode.
Allow all resizes in the file chooser. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.cxx')
-rw-r--r--src/Fl_File_Chooser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx
index eaebca5bf..31fd1b70e 100644
--- a/src/Fl_File_Chooser.cxx
+++ b/src/Fl_File_Chooser.cxx
@@ -4,6 +4,7 @@
inline void Fl_File_Chooser::cb_window_i(Fl_Window*, void*) {
fileName->value(directory_);
+fileList->deselect();
window->hide();
}
void Fl_File_Chooser::cb_window(Fl_Window* o, void* v) {
@@ -92,6 +93,7 @@ void Fl_File_Chooser::cb_okButton(Fl_Return_Button* o, void* v) {
inline void Fl_File_Chooser::cb_Cancel_i(Fl_Button*, void*) {
fileName->value(directory_);
+fileList->deselect();
window->hide();
}
void Fl_File_Chooser::cb_Cancel(Fl_Button* o, void* v) {
@@ -154,8 +156,7 @@ Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char
o->set_modal();
o->end();
}
- window->size_range(375, 315, 375);
-fileList->filter(p);
+ fileList->filter(p);
type(t);
value(d);
callback_ = 0;