Skip to content

unnecessary warning: cannot upload local QfieldSync directory #785

Description

@Jeroen-GroeneBij

What is the bug or the crash? What were your expectations and what actually happened?

When creating a new project from an existing QGIS project with the QField Sync plugin AND changing the local directory manually, you will get a warning:

Image

This warning does not appear when leaving the local directory untouched, i.e. it is the default local directory.

Steps to reproduce the issue

When creating a new project from an existing QGIS project you have the option to change the local directory.
If you do not change the local directory, the plugin will create a new folder into the local directory and sync the project without any issues.
However, if you change the local directory to a newly created and thus empty folder somewhere else and click Select Folder, you will get a warning.

The warning is kind of unnecessary; of course there is no existing QGIS project file yet in that folder.
And the suggestion 'You can always add one later.' is really confusing, because you really shouldn't.

Click OK to get rid of the warning and finish the creation of your new QField project and everything syncs normally.

I would suggest removing this warning. it has no use.

When using the default local directory, QFieldSync also creates a new, empty folder in which to store the new project. it should throw the same warning and I am glad it doesn't.

QGIS version

3.448

QFieldSync Version

4.20.0

Operating system name

Windows

Operating system version

10

Reinstall QFieldSync

  • I have a fresh install of the latest QFieldSync version on a new QGIS profile, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions