primitivus: paste is now treated as normal text instead of discarded if edit_bar doesn't exist
This commit is contained in:
parent
3bd7df3882
commit
dc69b62b16
1 changed files with 4 additions and 1 deletions
|
|
@ -417,7 +417,10 @@ class PrimitivusApp(QuickApp, InputHistory):
|
|||
try:
|
||||
edit_bar = self.editBar
|
||||
except AttributeError:
|
||||
log.warning(u"Paste discarded: there is no edit bar yet")
|
||||
log.warning(u"Paste treated as normal text: there is no edit bar yet")
|
||||
if extra is None:
|
||||
extra = []
|
||||
extra.extend(input_)
|
||||
else:
|
||||
if self.main_widget.focus == edit_bar:
|
||||
# XXX: if a paste is detected, we append it directly to the edit bar text
|
||||
|
|
|
|||
Loading…
Reference in a new issue