[haiku-commits] Re: haiku: hrev50493 - src/preferences/keymap

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 18 Aug 2016 11:53:09 +0200

Hi,

Am 17.08.2016 um 19:24 schrieb John Scipione:

While I've got you paying attention, what should I do if
create_directory returns not B_OK, should I instantiate the fOpenPanel
and fSavePanel objects with a NULL ref parameter like I did in my
revered commit for get_ref_for_path  != B_OK?

Yes. If I understand the code correctly, it shows a file panel where the user can find a Keymap to open, or where she can save it. When the default folder cannot be created, opening the home folder sounds like a sensible fall-back. The user can then navigate to another folder or create one as needed from within the file panel.

Best regards,
-Stephan


Other related posts: