Launcher: create empty directory for new projects

Bug #1108773 reported by Jacobo Aragunde Pérez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Wishlist
Jacobo Aragunde Pérez

Bug Description

Version: (2013-01-27 BZR 3925)-testing

A good practice for new projects is to save them in their own new directory, to avoid contamination with external files. It would be great that KiCad actively encouraged this practice detecting if the selected directory contains other files and, in that case, offering the possibility to create a new, empty directory in that location.

Tags: launcher new
Changed in kicad:
status: New → In Progress
Revision history for this message
Jacobo Aragunde Pérez (jaragunde) wrote :

Patch to implement this small feature. How it works:
* Checks if the selected directory is empty.
* If it isn't, asks the user if a new directory has to be created.
* In affirmative case, creates a directory with the same name the project has, and saves the project inside it.

I have also done a small modification to simplify the code that appends the .pro extension. If we use SetExt we don't have to check if the extension was already present. If you prefer this change delivered in a different patch, please tell me.

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Martin Errenst (imp-d) wrote :

r3927 stable

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.