MightyCreak / diffuse

Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.
http://mightycreak.github.io/diffuse/
GNU General Public License v2.0
258 stars 45 forks source link

fix: error when runnin with arg --version #216

Closed MightyCreak closed 6 months ago

MightyCreak commented 1 year ago

DiffuseApplication.on_shutdown() is called even in command line mode (as expected), but when running diffuse with the argument --version, the member self.statepath is not initialized.

The fix simply tests if the variable has been initialized (not an empty string).