summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-05-23 12:32:04 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-05-23 12:32:04 +0200
commitac5e3fe3e85163aaf4d54be47b1ea1250e314dd6 (patch)
tree27ebbd27e71d0fad1442cda203c2fe4a36e8c963 /src/timeline/InputBar.cpp
parentFix unsigned wraparound when creating one time keys (diff)
downloadnheko-ac5e3fe3e85163aaf4d54be47b1ea1250e314dd6.tar.xz
Send images on enter if input bar is empty
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 7ef61da4..4a3605bb 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -296,8 +296,10 @@ InputBar::send()
 {
     QInputMethod *im = QGuiApplication::inputMethod();
     im->commit();
-    if (text().trimmed().isEmpty())
+    if (text().trimmed().isEmpty()) {
+        acceptUploads();
         return;
+    }
 
     nhlog::ui()->debug("Send: {}", text().toStdString());