Qt: fix crash when opening/saving IP map on Windows
According to https://bugreports.qt.io/browse/QTBUG-20372 you need to close a QFile before calling fclose, otherwise it leads to an unexpected behavior. Let's duplicate the file handle to avoid this issue as suggested in https://stackoverflow.com/questions/9465727/convert-qfile-to-file
Closes #17074 (closed)
Edited by Pascal Quantin