Close dialogs on confirmation
This commit is contained in:
parent
d4ce7a9dda
commit
ecc346a6da
8 changed files with 31 additions and 38 deletions
|
|
@ -43,6 +43,9 @@ LeaveRoom::LeaveRoom(QWidget *parent)
|
|||
layout->addWidget(label);
|
||||
layout->addLayout(buttonLayout);
|
||||
|
||||
connect(confirmBtn_, &QPushButton::clicked, this, &LeaveRoom::leaving);
|
||||
connect(confirmBtn_, &QPushButton::clicked, this, [this]() {
|
||||
emit leaving();
|
||||
emit close();
|
||||
});
|
||||
connect(cancelBtn_, &QPushButton::clicked, this, &LeaveRoom::close);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue