Lubomir I. Ivanov 5514499867 Divelogs.de: improve prepare_dives_for_divelogs()
prepare_dives_for_divelogs() is based on GTK / C code
where we used GLib methods to generate a temp zip file.
Qt has QTemporaryFile, but it seems there is some sort
of a problem when using with with zip_open
(ZIP_CREATE considered) or at least in this particular case.

To workaround that, we generate a random name ourself with qrand()
and simply pass it to zip_open (with ZIP_CREATE) and then return
the filename.

Also (!), there is memory corruption when trying to return
'tempfile'. This wasn't the case with the C compiler,
to my knowledge. Regardless of this fact the generated
zip does not look corrupt.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2013-12-09 16:23:57 +02:00
..
2013-09-02 05:57:08 -03:00
2013-11-29 12:11:12 -08:00
2013-12-04 15:49:55 -08:00
2013-10-15 04:37:31 -07:00
2013-12-07 08:13:55 -08:00
2013-12-07 07:25:19 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:24:59 -08:00
2013-11-30 09:24:59 -08:00