Unable to close new playlist tab

Bug #349765 reported by Graham Whelan
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Undecided
Unassigned

Bug Description

An exception is raised when trying to close the tab of a newly created playlist.

Test case:
Create a new playlist, add a track to it and then hit the close button on the playlist's tab.

Result:
Traceback (most recent call last):
  File "/home/user/opt/lib/exaile/xlgui/main.py", line 177, in do_close
    if self.page.on_closing():
  File "/home/user/opt/lib/exaile/xlgui/playlist.py", line 373, in on_closing
    dialog = ConfirmCloseDialog(self.playlist.get_name())
  File "/home/user/opt/lib/exaile/xlgui/playlist.py", line 860, in __init__
    self.set_title(_('Confirm Close'))
NameError: global name '_' is not defined

This is because gettext is not being imported in the file xlgui/playlist.py.

I've attached a patch to fix this.

Revision history for this message
Graham Whelan (gawhelan) wrote :
Revision history for this message
reacocard (reacocard) wrote :

committed in r1819

Changed in exaile:
status: New → Fix Committed
reacocard (reacocard)
Changed in exaile:
milestone: none → 0.3.0
reacocard (reacocard)
Changed in exaile:
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.