summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-01 08:28:59 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-01 08:28:59 +0000
commit43b4048b9c613e23ce80e2ce9c96cf30334fe931 (patch)
tree3b9cf150b98313f4effd8723a6d48b4ebad6ec70 /src/Fl_File_Chooser.cxx
parente5ceaa48e4db781002fc1ff66febf9fd11de95b9 (diff)
Fix file chooser bug - show() was calling deselect() when it shouldn't
have been. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.cxx')
-rw-r--r--src/Fl_File_Chooser.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx
index 42f1b035f..ca734ae1e 100644
--- a/src/Fl_File_Chooser.cxx
+++ b/src/Fl_File_Chooser.cxx
@@ -3,8 +3,7 @@
#include "../FL/Fl_File_Chooser.H"
inline void Fl_File_Chooser::cb_window_i(Fl_Window*, void*) {
- fileList->deselect();
-fileName->value("");
+ fileName->value(directory_);
window->hide();
}
void Fl_File_Chooser::cb_window(Fl_Window* o, void* v) {
@@ -92,8 +91,7 @@ void Fl_File_Chooser::cb_okButton(Fl_Return_Button* o, void* v) {
}
inline void Fl_File_Chooser::cb_Cancel_i(Fl_Button*, void*) {
- fileList->deselect();
-fileName->value("");
+ fileName->value(directory_);
window->hide();
}
void Fl_File_Chooser::cb_Cancel(Fl_Button* o, void* v) {
@@ -213,7 +211,6 @@ const char * Fl_File_Chooser::label() {
void Fl_File_Chooser::show() {
window->hotspot(fileList);
window->show();
-fileList->deselect();
}
int Fl_File_Chooser::shown() {