From: <tz...@us...> - 2009-04-12 20:58:02
|
Revision: 2980 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=2980&view=rev Author: tzlaine Date: 2009-04-12 20:57:48 +0000 (Sun, 12 Apr 2009) Log Message: ----------- Added a call to GG::Edit::EditedSignal to OptionWnd's BrowseForPathButtonFunctor. This fixes the problem that selecting files or directories via the browse "..." button does not actually update the OptionsDB. Modified Paths: -------------- trunk/FreeOrion/UI/OptionsWnd.cpp Modified: trunk/FreeOrion/UI/OptionsWnd.cpp =================================================================== --- trunk/FreeOrion/UI/OptionsWnd.cpp 2009-04-12 14:02:59 UTC (rev 2979) +++ trunk/FreeOrion/UI/OptionsWnd.cpp 2009-04-12 20:57:48 UTC (rev 2980) @@ -88,6 +88,7 @@ if (!dlg.Result().empty()) { fs::path path = m_directory ? fs::complete(*dlg.Result().begin()) : RelativePath(m_path, fs::path(*dlg.Result().begin())); *m_edit << path.native_file_string(); + m_edit->EditedSignal(m_edit->Text()); } } catch (const FileDlg::BadInitialDirectory& e) { ClientUI::MessageBox(e.what(), true); |