Pressing return on image upload dialog sends the message
This commit is contained in:
parent
98e0b95635
commit
aa0223c041
@ -48,6 +48,12 @@ PreviewUploadOverlay::PreviewUploadOverlay(QWidget *parent)
|
|||||||
emit confirmUpload(data_, mediaType_, fileName_.text());
|
emit confirmUpload(data_, mediaType_, fileName_.text());
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(&fileName_, &QLineEdit::returnPressed, this, [this]() {
|
||||||
|
emit confirmUpload(data_, mediaType_, fileName_.text());
|
||||||
|
close();
|
||||||
|
});
|
||||||
|
|
||||||
connect(&cancel_, &QPushButton::clicked, this, [this]() {
|
connect(&cancel_, &QPushButton::clicked, this, [this]() {
|
||||||
emit aborted();
|
emit aborted();
|
||||||
close();
|
close();
|
||||||
|
Loading…
Reference in New Issue
Block a user