summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-03-15 11:48:55 +0000
committerGitHub <noreply@github.com>2021-03-15 11:48:55 +0000
commit61c5dffffd90659a5c0820331537a853e027cf05 (patch)
treefc23763ac16a557ea14511b3efbaf64bf738c357
parentMerge pull request #524 from Nheko-Reborn/native-menus (diff)
parentPressing return on image upload dialog sends the message (diff)
downloadnheko-61c5dffffd90659a5c0820331537a853e027cf05.tar.xz
Merge pull request #525 from salahmak/image-upload-dialog
Pressing return on image upload dialog sends the message
-rw-r--r--src/dialogs/PreviewUploadOverlay.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dialogs/PreviewUploadOverlay.cpp b/src/dialogs/PreviewUploadOverlay.cpp
index 55421a7d..b2bef136 100644
--- a/src/dialogs/PreviewUploadOverlay.cpp
+++ b/src/dialogs/PreviewUploadOverlay.cpp
@@ -48,6 +48,12 @@ PreviewUploadOverlay::PreviewUploadOverlay(QWidget *parent)
                 emit confirmUpload(data_, mediaType_, fileName_.text());
                 close();
         });
+
+        connect(&fileName_, &QLineEdit::returnPressed, this, [this]() {
+                emit confirmUpload(data_, mediaType_, fileName_.text());
+                close();
+        });
+
         connect(&cancel_, &QPushButton::clicked, this, [this]() {
                 emit aborted();
                 close();