Show dive import error messages in the import dialog

.. not in the main window.  And leave the import dialog open, so that
you can either try doing it again, or cancel.  This makes it much easier
to re-try a failed dive import, and actually makes the failure more
obvious too.

Todo:

 - make the "Ok" button change to "Retry" when an error happens

 - try to see if we can catch the actual status update messages from
   libdivecomputer and show them too in the import dialog.  Right now
   they are printed out to stderr by the library.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-05-02 12:49:03 -07:00
parent c8f3dc3594
commit b0ba22a068
3 changed files with 30 additions and 8 deletions

View file

@ -34,6 +34,6 @@ struct device_list {
};
extern struct device_list device_list[];
extern void do_import(device_data_t *data);
extern GError *do_import(device_data_t *data);
#endif