closing with no file open results in error

Bug #843890 reported by TLE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PoProofRead. poproofread has MOVED to github
Fix Released
Critical
Unassigned

Bug Description

Traceback (most recent call last):
  File "poproofread-gtk.py", line 60, in on_window_destroy
    self.on_mnu_quit(widget)
  File "poproofread-gtk.py", line 102, in on_mnu_quit
    self.ppr.save()
  File "/home/knielsen/code/poproofread/core.py", line 37, in save
    self.file.write(self.content)
AttributeError: PoProofRead instance has no attribute 'file'

Make sure we test if core is active (has a file loaded) before trying
   to save it, e.g. when shutting down the program

TLE (k-nielsen81)
Changed in poproofread:
importance: Undecided → Critical
TLE (k-nielsen81)
Changed in poproofread:
status: New → Fix Committed
TLE (k-nielsen81)
Changed in poproofread:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.