diff --git a/README.rst b/README.rst index 8a304c7..56447a3 100644 --- a/README.rst +++ b/README.rst @@ -73,8 +73,8 @@ The module contains two Python 1st class citizens: - fin: a file-like - fout: None or a file-like object. If a file, then the input will be written to the output with the new calculated CRC - - logcb (default: log_null -> empty stub - a logger which must a accepts *args (print will work) + - logcb (default: ``log_null`` which is an empty stub) + a logger which must a accepts \*args (print will work) Returns: diff --git a/changelog.txt b/changelog.txt index 0150244..a5505ec 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +0.0.3 + - Correct README rst syntax (*args -> \*args) + - Avoid error on loading if empty file selection + 0.0.2 - Made pip installable module and utility - Reworkd GUI diff --git a/fritzchecksum/version.py b/fritzchecksum/version.py index 45915ef..830ab47 100644 --- a/fritzchecksum/version.py +++ b/fritzchecksum/version.py @@ -22,4 +22,4 @@ unicode_literals) -__version__ = '0.0.1' +__version__ = '0.0.3' diff --git a/src.gui/appconstants.py b/src.gui/appconstants.py index eada136..ad106c7 100644 --- a/src.gui/appconstants.py +++ b/src.gui/appconstants.py @@ -31,7 +31,7 @@ AppExeType = 'onefile' # 'onedir' or 'onefile' AppTitle = AppName -AppVersion = '0.0.2' +AppVersion = '0.0.3' AppSingleInstance = True AppUACAdmin = False AppUACUiAccess = False diff --git a/src.gui/uimods/controllers/mainframe.py b/src.gui/uimods/controllers/mainframe.py index 360f782..e42a874 100644 --- a/src.gui/uimods/controllers/mainframe.py +++ b/src.gui/uimods/controllers/mainframe.py @@ -41,8 +41,9 @@ def __init__(self, parent): wxfb.BindingTextCtrl('crcnew', config=False) self.model = mainmodel.MainModel() - if self.loadlast.value: - self.model.load(self.fileread.path) + if self.loadlast.value and self.fileread.path: + if os.path.isfile(self.fileread.path): + self.model.load(self.fileread.path) if True: @PubRecv('evt_filepicker_changed.fileread')