manuskript/manuskript
Curtis Gedak 5f9ea3baa5 Fix crash when setting word Goal on new Text (scene) in Outline pane
See issue #561.

The problem appears to be a due to a combination of factors, such as:

- Python does not automatically convert an empty/blank variable to the
  integer zero (0)
- Default goal value is empty/blank for a new Text (scene)
- Asynchronous events can occur such that the change in the Outline
  pane of a new Text (scene) goal from empty/blank to a value is not
  saved to the data model prior to the update event in the Editor pane
  accessing the model value for the word count progress display.

Steps to Reproduce:

1. Start manuskript and create new project (no template).

2. Select **Outline** pane.

3. Click "Text Plus" icon to create a text (default name "New")

4. Select **Editor** pane.

5. Click on **New** to display empty text.

6. Select **Outline** pane.

7. Double-click the empty area on **New** line under title **Goal**,
  type in "300", and press **Enter**.

   Note that manuskript crashes with a segmentation fault.

Work around the crash by using the already existing manuskript
function toInt() which handles conversion of empty/blank values to
integer value zero (0).
2019-07-31 10:46:06 -06:00
..
converters Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
exporter Spelling: Manuscript, could not, process, … No content (#588) 2019-06-06 11:55:24 -06:00
functions Fix crash when setting word Goal on new Text (scene) in Outline pane 2019-07-31 10:46:06 -06:00
importer Fix crash if using a custom pandoc installation 2019-05-20 09:39:45 -06:00
load_save Directory entries in ZIP break loading code 2019-03-12 14:44:51 -06:00
models Fix crash if invalid character is inserted into the text. 2019-05-21 09:52:18 -06:00
tests Fix pytest warning about duplicate name when running tests 2018-11-16 12:52:09 -07:00
ui Fix crash when setting word Goal on new Text (scene) in Outline pane 2019-07-31 10:46:06 -06:00
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
enums.py Checkpoint in refactoring outlineItem 2017-11-17 12:16:39 +01:00
loadSave.py Ensure text file open methods use utf-8 encoding 2019-02-27 09:30:16 -07:00
main.py Add support for IPython Jupyter QT Console as a debugging aid 2019-03-29 10:37:53 -06:00
mainWindow.py Center dialog for the frequency analyzer too. 2019-05-20 09:25:17 -06:00
settings.py Add ability to save fullscreen panel settings 2019-04-02 11:42:25 -06:00
settingsWindow.py Add new language translations to the Settings window 2019-07-14 10:11:52 -06:00
version.py ========== manuskript-0.9.0 ========== 2019-04-04 10:34:25 -06:00