189 |
189 |
190 act2 = menu.addAction(self.tr("Properties...")) |
190 act2 = menu.addAction(self.tr("Properties...")) |
191 act2.setData(v) |
191 act2.setData(v) |
192 act2.triggered.connect(lambda: self.__edit(act2)) |
192 act2.triggered.connect(lambda: self.__edit(act2)) |
193 |
193 |
194 execAct = menu.exec_(QCursor.pos()) |
194 execAct = menu.exec(QCursor.pos()) |
195 if execAct is not None: |
195 if execAct is not None: |
196 self.close() |
196 self.close() |
197 parent = self.parent() |
197 parent = self.parent() |
198 while parent is not None and isinstance(parent, QMenu): |
198 while parent is not None and isinstance(parent, QMenu): |
199 parent.close() |
199 parent.close() |
275 from .BookmarkPropertiesDialog import BookmarkPropertiesDialog |
275 from .BookmarkPropertiesDialog import BookmarkPropertiesDialog |
276 |
276 |
277 idx = self.index(act) |
277 idx = self.index(act) |
278 node = self.model().node(idx) |
278 node = self.model().node(idx) |
279 dlg = BookmarkPropertiesDialog(node) |
279 dlg = BookmarkPropertiesDialog(node) |
280 dlg.exec_() |
280 dlg.exec() |
281 |
281 |
282 ############################################################################## |
282 ############################################################################## |
283 |
283 |
284 |
284 |
285 class BookmarksMenuBarMenu(BookmarksMenu): |
285 class BookmarksMenuBarMenu(BookmarksMenu): |