diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2013-07-05 14:45:32 +0300 |
---|---|---|
committer | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2013-07-05 15:22:30 +0300 |
commit | 1ee0ba068a0619384cce2f2164d6815f00b185bc (patch) | |
tree | 631df8cef9463e1470bc6a0342dca6d6baedb7d7 /src/msd/msd_main_window.py | |
parent | e33d1e32628037bb65352fda73a6a1c15b68d660 (diff) | |
download | dleyna-control-1ee0ba068a0619384cce2f2164d6815f00b185bc.tar.gz |
[GenericModel] Set path to "0" if iterator is not set
It's not clear why get_path() is called with a tree_iter that is not
yet defined -- in other words there may be some application logic bug
hidden here -- but this should make the call safe: Return the "0" path
when iterator is not initialized (tree_iter.user_data is null or 0,
depending on gobject-introspection version).
Fixes #38, I believe. I cannot reproduce the problem as is but I can manually
create problematic tree_iters: those are now fine with the new code.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Diffstat (limited to 'src/msd/msd_main_window.py')
0 files changed, 0 insertions, 0 deletions