Skip to content

load and saveAs functions do not work as expected in a Linux environment #1

@simoninns

Description

@simoninns

In JsonWax.h line 184:

qfile.setFileName( PROGRAM_PATH + '/' + fileName);

This is assuming that the directory separator is '/' which is only true for the Windows environment (same for line 247). It should be possible to use QDir to convert absolute and relative paths in a portable manner.

This causes the 'load' and 'saveAs' methods to fail unless an absolute path is passed (tested on Ubuntu 18.04 LTS).

(thanks for the GPL library btw :) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions