Better message indicating which folder will be deleted, to ensure that the user only deletes the one that really want to delete.

This commit is contained in:
Sergio Costas 2014-08-09 22:50:18 +02:00
parent 2f8a8dc1e4
commit be34851f32
2 changed files with 2 additions and 3 deletions

View file

@ -66,8 +66,7 @@
<property name="use_markup">True</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="ellipsize">start</property>
<property name="track_visited_links">False</property>
</object>
<packing>
<property name="expand">True</property>

View file

@ -410,7 +410,7 @@ class devede_project:
if os.path.exists(data.path):
ask_w = devede.ask.ask_window()
retval = ask_w.run(_("The selected folder already exists. If you continue, it will be deleted. Continue?"),_("Delete folder"))
retval = ask_w.run(_("The selected folder already exists. To create the project, Devede must delete it.\nIf you continue, the folder\n\n <b>%s</b>\n\n and all its contents <b>will be deleted</b>. Continue?") % data.path,_("Delete folder"))
if retval:
shutil.rmtree(data.path,True)
else: