summary refs log tree commit diff
path: root/src/timeline/InputBar.h
diff options
context:
space:
mode:
authorSyldraTheCat <syldratube@gmail.com>2022-06-13 11:16:49 +0000
committerSyldraTheCat <syldratube@gmail.com>2022-06-14 12:04:34 +0000
commit8a6acd1d868a6c30a2d40f699f0bcb688fed0558 (patch)
tree782930a05faef503d4eca94f07ba8a999d17ae8c /src/timeline/InputBar.h
parentUpdate hidden read receipts MSC (diff)
downloadnheko-8a6acd1d868a6c30a2d40f699f0bcb688fed0558.tar.xz
Subtle corrections to paste behaviors
Diffstat (limited to 'src/timeline/InputBar.h')
-rw-r--r--src/timeline/InputBar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timeline/InputBar.h b/src/timeline/InputBar.h
index 28a4bcf6..816d4e37 100644
--- a/src/timeline/InputBar.h
+++ b/src/timeline/InputBar.h
@@ -190,8 +190,8 @@ public slots:
     [[nodiscard]] bool containsAtRoom() const { return containsAtRoom_; }
 
     void send();
-    void paste(bool fromMouse);
-    void insertMimeData(const QMimeData *data);
+    bool tryPasteAttachment(bool fromMouse);
+    bool insertMimeData(const QMimeData *data);
     void updateState(int selectionStart, int selectionEnd, int cursorPosition, const QString &text);
     void openFileSelection();
     [[nodiscard]] bool uploading() const { return uploading_; }
@@ -212,7 +212,6 @@ private slots:
     void removeRunUpload(MediaUpload *upload);
 
 signals:
-    void insertText(QString text);
     void textChanged(QString newText);
     void uploadingChanged(bool value);
     void containsAtRoomChanged();