dub prj tester broken due to json always created

This commit is contained in:
Basile Burg 2015-12-16 14:04:53 +01:00
parent fced43b053
commit 2af68ab9d4
3 changed files with 2 additions and 3 deletions

View File

@ -795,7 +795,7 @@ begin
try
try
maybe.loadFromFile(filename);
if maybe.json = nil then
if (maybe.json = nil) or (maybe.filename = '') then
result := false
else if maybe.json.Find('name') = nil then
result := false;

View File

@ -23,7 +23,6 @@ __________
**Widgets**
* [Technical notes](https://github.com/BBasile/Coedit/wiki#technical-notes)
* [Editor](https://github.com/BBasile/Coedit/wiki#editor-widget)
* [Find](https://github.com/BBasile/Coedit/wiki#find--replace-widget)
* [Library manager](https://github.com/BBasile/Coedit/wiki#library-manager-widget)

View File

@ -745,7 +745,7 @@ A property inspector allows to tweak the format. See the [official documentation
- ![](https://raw.githubusercontent.com/BBasile/Coedit/master/icons/other/cancel.png): restore the previous backup.
The formatting is applied in memory and is undo-able either from the widget or from the code editor. The changes are not physically applied until the file is explicitly saved.
Formatting options are saved between each session in [Coedit data folder][lnk_widg_opts].
Formatting options are saved between each session in the [Coedit data folder][lnk_widg_opts].
## Message widget