Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
7703d40e
by lovetox at 2020-09-18T10:24:13+02:00
1 changed file:
Changes:
| ... | ... | @@ -729,6 +729,8 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, EventHelper): |
| 729 | 729 |
def paste_clipboard_as_quote(self, _item: Gtk.MenuItem) -> None:
|
| 730 | 730 |
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
|
| 731 | 731 |
text = clipboard.wait_for_text()
|
| 732 |
+ if text is None:
|
|
| 733 |
+ return
|
|
| 732 | 734 |
self.insert_as_quote(text)
|
| 733 | 735 |
|
| 734 | 736 |
def on_quote(self, _widget, text):
|