mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 08:54:34 +12:00
5f9ea3baa5
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). |
||
---|---|---|
.. | ||
editors | ||
exporters | ||
highlighters | ||
importers | ||
tools | ||
views | ||
__init__.py | ||
about.py | ||
about_ui.py | ||
about_ui.ui | ||
cheatSheet.py | ||
cheatSheet_ui.py | ||
cheatSheet_ui.ui | ||
collapsibleDockWidgets.py | ||
collapsibleGroupBox.py | ||
collapsibleGroupBox2.py | ||
helpLabel.py | ||
mainWindow.py | ||
mainWindow.ui | ||
revisions.py | ||
revisions_ui.py | ||
revisions_ui.ui | ||
search.py | ||
search_ui.py | ||
search_ui.ui | ||
settings_ui.py | ||
settings_ui.ui | ||
statusLabel.py | ||
style.py | ||
welcome.py | ||
welcome_ui.py | ||
welcome_ui.ui |