Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix yet another case of trying to take action when a library item is not selected
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:9e8267681c182ec7907c7937168a962cffb83531
User & Date: brandon 2018-12-10 02:17:00
Context
2018-12-10
02:17
Fix yet another case of trying to take action when a library item is not selected Leaf check-in: 9e8267681c user: brandon tags: trunk
02:01
Refactor story-adding and coverart-importing code, fixing some cases of missing coverart in the process check-in: 677361353d user: brandon tags: trunk
Changes

Changes to src/grotesque/ui/gtk3/library/librarypaned.py.

132
133
134
135
136
137
138

139


140
141
142
143
144
145
146
        selected as well as the iters that point to their rows in the list
        store.

        '''
        stories = []
        row_iters = self.get_selected_rows()
        for row_iter in row_iters:

            stories.append(self.library.get_story_id(row_iter))


        return zip(stories, row_iters)

    def get_filter_iter(self, path, sorted_model):
        '''This is a helper method which simplifies the process of getting a
        valid iter after the library view has been filtered and/or sorted.

        '''







>
|
>
>







132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
        selected as well as the iters that point to their rows in the list
        store.

        '''
        stories = []
        row_iters = self.get_selected_rows()
        for row_iter in row_iters:
            try:
                stories.append(self.library.get_story_id(row_iter))
            except:
                stories.append(None)
        return zip(stories, row_iters)

    def get_filter_iter(self, path, sorted_model):
        '''This is a helper method which simplifies the process of getting a
        valid iter after the library view has been filtered and/or sorted.

        '''