mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #525 from salahmak/image-upload-dialog
Pressing return on image upload dialog sends the message
This commit is contained in:
commit
61c5dffffd
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue