From 55125274af2e8c743739e6721be0ba94e62d01b7 Mon Sep 17 00:00:00 2001 From: Karel Matas Date: Mon, 24 Jun 2013 13:03:49 +0200 Subject: [PATCH] fixed: downloaddialog runs exit() instead of hide() --- src/aoi.cxx | 2 +- src/gui.hxx | 2 +- src/gui_dialogs.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aoi.cxx b/src/aoi.cxx index 8893784..5dc3f56 100755 --- a/src/aoi.cxx +++ b/src/aoi.cxx @@ -838,7 +838,7 @@ void App::cb_file ( MANAGEDB_FILE_TYPE filetype, bool download ) log_d("Download finished..."); } else - fname = ui_->open_file_dialog(); + fname = ui_->ask_file(); if ( fname.empty() ) return; diff --git a/src/gui.hxx b/src/gui.hxx index c8fa238..27cd2a5 100755 --- a/src/gui.hxx +++ b/src/gui.hxx @@ -355,7 +355,7 @@ class GUI inline void highlight_components ( const string &comps ) { main_window_->compo_view_->set_highlight(comps); } - string open_file_dialog (){ + string ask_file (){ Fl_Native_File_Chooser fnfc; fnfc.title("Pick a file"); fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE); diff --git a/src/gui_dialogs.hxx b/src/gui_dialogs.hxx index ac9bc98..0778656 100755 --- a/src/gui_dialogs.hxx +++ b/src/gui_dialogs.hxx @@ -252,7 +252,7 @@ class DialogDownload : public Fl_Double_Window fl_message("You must abort download before closing window." ); return; } - exit(0); + ((DialogDownload*)w)->hide(); }; }; -- 2.11.4.GIT