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

Pressing return on image upload dialog sends the message
pull/527/head
DeepBlueV7.X 4 years ago committed by GitHub
commit 61c5dffffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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();

Loading…
Cancel
Save