Changeset f0f14d96fb94…
Parent f15d1b7f3c46…
by
Changes to one file · Browse files at f0f14d96fb94 Showing diff from parent f15d1b7f3c46 Diff from another changeset...
@@ -109,7 +109,8 @@
# check if the user has opened a menu on a text selection
c = self.textCursor()
- if cursor.position() >= c.selectionStart() and \
+ selection = c.selection().toPlainText()
+ if selection and cursor.position() >= c.selectionStart() and \
cursor.position() <= c.selectionEnd():
selection = c.selection().toPlainText()
def sorig():
|
Loading...