manuskript/manuskript/ui/editors
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
..
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
blockUserData.py Cleaning up imports, at last 2016-02-06 12:34:22 +01:00
completer.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
completer_ui.py Cleaning up imports, at last 2016-02-06 12:34:22 +01:00
completer_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
editorWidget.py Fix occasional crashes when (re)moving items 2019-05-19 09:33:19 -06:00
editorWidget_ui.py Subclass textEditView 2017-11-27 15:00:07 +01:00
editorWidget_ui.ui Subclass textEditView 2017-11-27 15:00:07 +01:00
fullScreenEditor.py trying to resolve full screen exit issues on macOS 2019-05-03 09:41:39 -06:00
locker.py Fixes #119: Distraction free mode crashes with time target 2017-06-20 14:08:48 +02:00
locker_ui.py Renaming source folder 2016-02-06 08:38:33 +01:00
locker_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
mainEditor.py Fix crash when setting word Goal on new Text (scene) in Outline pane 2019-07-31 10:46:06 -06:00
mainEditor_ui.py Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
mainEditor_ui.ui Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
MDFunctions.py Purging some remaining t2tfiles 2016-03-30 11:36:25 +02:00
tabSplitter.py Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
tabSplitter_ui.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
tabSplitter_ui.ui Can split views 2016-04-10 19:58:49 +02:00
textFormat.py Changes every Enum to IntEnum 2017-11-15 21:05:48 +01:00
textFormat_ui.py Some more tweaks 2016-04-08 20:16:35 +02:00
textFormat_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
themes.py Set editor theme stylesheet to QTextEdit only. 2019-02-25 11:15:16 -07:00