manuskript/manuskript
Jan Wester 3aa9cadfd8 Restore progress bar functionality
A previous fix (5f9ea3) inadvertently broke the progress bar by
converting to the wrong data type. (See issue #561 / PR #609).

While checking the code I realized the problem occurred primarily
because we weren't checking the validity of the values closer to the
source. Doing so alleviates the need to check elsewhere.

In the hope of inspiring a more systematic approach, a new uiParse()
utility function has been added to curb the further growth of toXxx()
functions that exist solely to validate user input.

There is no doubt room for improvement, both on the end of the new
uiParse() function as well as the spot where it is used. Ideally, the
data that comes out of the model should already be 'safe', but since
this is a bugfix for a bugfix I want to keep waves to a minimum.

This commit fixes issue #652.
2019-09-23 14:13:38 -06:00
..
converters Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
exporter Do not try to export after dismissing the dialog 2019-09-07 15:59:45 -06:00
functions Restore progress bar functionality 2019-09-23 14:13:38 -06:00
importer Fix crash if using a custom pandoc installation 2019-05-20 09:39:45 -06:00
load_save Fixed race when closing an auto-saving project. 2019-08-12 10:35:07 -06:00
models Fix misc. typos 2019-09-19 09:58:24 -06:00
tests Default keep revisions to disabled, and remove tests for revisions 2019-09-22 10:45:07 -06:00
ui Restore progress bar functionality 2019-09-23 14:13:38 -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 Move Qt 5.11 / 5.12 version warning to Import invocation 2019-09-17 10:41:33 -06:00
mainWindow.py Fix misc. typos 2019-09-19 09:58:24 -06:00
settings.py Default keep revisions to disabled, and remove tests for revisions 2019-09-22 10:45:07 -06:00
settingsWindow.py Fix misc. typos 2019-09-19 09:58:24 -06:00
version.py ========== manuskript-0.9.0 ========== 2019-04-04 10:34:25 -06:00