Skip to content

Commit

Permalink
Fix error on right clicking empty trollslum
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpeta committed Jul 31, 2024
1 parent b9bbda5 commit 7772ba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pesterchum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,8 @@ def contextMenuEvent(self, event):
if event.reason() == QtGui.QContextMenuEvent.Reason.Mouse:
listing = self.itemAt(event.pos())
self.setCurrentItem(listing)
if self.currentItem().text(0) != "":
curItem = self.currentItem()
if curItem and curItem.text(0):
self.optionsMenu.popup(event.globalPos())

def changeTheme(self, theme):
Expand Down

0 comments on commit 7772ba5

Please sign in to comment.