8322:b422b4e77d19 | 8323:3bb9b7d997db |
---|---|
153 | 153 |
154 @param pos position the context menu shall be shown (QPoint) | 154 @param pos position the context menu shall be shown (QPoint) |
155 """ | 155 """ |
156 act = self.actionAt(pos) | 156 act = self.actionAt(pos) |
157 | 157 |
158 # TODO: change this to not use act.menu() | |
158 if ( | 159 if ( |
159 act is not None and | 160 act is not None and |
160 act.menu() is None and | 161 act.menu() is None and |
161 self.index(act).isValid() | 162 self.index(act).isValid() |
162 ): | 163 ): |