Merge pull request #525 from salahmak/image-upload-dialog

Pressing return on image upload dialog sends the message
This commit is contained in:
DeepBlueV7.X 2021-03-15 11:48:55 +00:00 committed by GitHub
commit 61c5dffffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();