Properties: no active row, get_cursor returns None, causing error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Medium
|
Johannes Sasongko |
Bug Description
The track properties dialog calls gtk.TreeView.
The problem is, get_cursor can return None, and this is not handled. To reproduce:
1. Create new playlist view.
2. Drag a track to it.
3. Press the Next button, the track should start playing.
4. Tools → Track Properties.
If you don't see the error, try restarting Exaile. For some reason it doesn't happen all the time.
Traceback (most recent call last):
File "C:\Users\
if not pl.properties_
File "C:\Users\
selected = self.get_cursor()
File "C:\Users\
track_id = self.list.
TypeError: 'NoneType' object is unsubscriptable
Related branches
Changed in exaile: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
Fixed. get_cursor was returning (None, None).