Skip to content

Commit

Permalink
fixup! Introduce showKiwixMessageBox()
Browse files Browse the repository at this point in the history
  • Loading branch information
juuz0 committed Jul 3, 2024
1 parent 64a4916 commit 27895d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kiwixmessagebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ void showInfoBox(QString title, QString text, QWidget *parent)
KiwixMessageBox::Result showKiwixMessageBox(QString title, QString text, QWidget *parent, QString leftTitle, QString rightTitle)
{
KiwixMessageBox *dialog = new KiwixMessageBox(title, text, false, parent, leftTitle, rightTitle);
dialog->setAttribute(Qt::WA_DeleteOnClose);
QObject::connect(dialog, &KiwixMessageBox::finished, [=]() {
dialog->deleteLater();
});
return dialog->execDialog();
}

0 comments on commit 27895d5

Please sign in to comment.