TypeError when adding a launcher and nothing is selected in the directory view
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MenuLibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Summary:
An error is emitted if a launcher is added when no row is selected in the directory tree view.
Steps to reproduce:
1. Deselect any selected entries in the directory tree view.
2. Click on the "+" button and select "Add Launcher" from the drop-drown menu.
Expected result:
Nothing.
Actual result:
The following traceback is emitted.
Traceback (most recent call last):
File "/home/
self.
File "/home/
if row_data[2] == MenuItemTypes.
TypeError: 'NoneType' object is not subscriptable
Workaround:
I have attached a patch which makes the add_launcher routine exit early if no row is selected in the directory tree view.
Changed in menulibre: | |
milestone: | none → 2.1.4 |
Changed in menulibre: | |
status: | Fix Committed → Fix Released |
Thanks for the patch! Confirmed and applied at the below commit.
http:// bazaar. launchpad. net/~menulibre- dev/menulibre/ master/ revision/ 461