From cc5884c13663a57aa5e2e0f43ea9c3b60c3e2fa0 Mon Sep 17 00:00:00 2001 From: Jkoan Date: Fri, 15 Aug 2014 19:07:00 +0200 Subject: [PATCH] Fix Remove Dialog Remove failed test and add other Messagebox to correct Text with Language support Add Title again -,- --- obs/window-basic-main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 1d47dc6ea..7f7d6904d 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -841,11 +841,15 @@ bool OBSBasic::QueryRemoveSource(obs_source_t source) QString text = QTStr("ConfirmRemove.Text"); text.replace("$1", QT_UTF8(name)); - QMessageBox::StandardButton button; - button = QMessageBox::question(this, - QTStr("ConfirmRemove.Remove"), text); + QMessageBox remove_source; + remove_source.setInformativeText(text); + QAbstractButton *Yes = remove_source.addButton(QTStr("Yes"), QMessageBox::YesRole); + remove_source.addButton(QTStr("No"), QMessageBox::NoRole); + remove_source.setIcon(QMessageBox::Question); + remove_source.setWindowTitle(QTStr("ConfirmRemove.Title")); + remove_source.exec(); - return button == QMessageBox::Yes; + return Yes == remove_source.clickedButton(); } #define UPDATE_CHECK_INTERVAL (60*60*24*4) /* 4 days */