robvdl/MapEditor — Issue #9: Stop the user from creating a project directly in the projects base folder
Author: robvdl
Created: 2012-01-13 21:19:33+00:00
State: open

Because each leveldb database is a directory of it's own, rather than a single file database like SQLite databases, we needed to create each project in it's own subfolder under the projects base folder, for example /home/user/MapEditor/project1 and NOT /home/user/MapEditor.

This might not be exactly obvious to the user, I have tried to make this as simple as possible, but at the moment the user could still make a mistake and create their first project directly under the projects base folder. Then the next time they try to create a project, they can no longer put it under the projects folder because we only allow projects to be created in empty folders.

We should add an extra check when the user accepts the new project dialog, that checks if the user isn't trying to create a project directly in the projects base folder, and give an error message if they try to. This should be one of the first things we check, before we check if the project path is empty or not, but after we checked if the project path exists.

The message should say something like:

Error

You cannot create a project directly in the projects base folder, please create each project in it's won sub folder.

Ok