Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/chat_control_base.py
    ... ... @@ -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):