diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-02-15 10:48:51 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-02-15 10:48:51 +0100 |
commit | c6e2322e5357736871bd6d5c1f87222fe9dac738 (patch) | |
tree | 002b0cfd719d956749e9f88ac21c6153d7c7fe23 /client/messagebox.cc | |
parent | 985a62c8098587cb4938b9cdd09f56151777d952 (diff) |
Make Qt5 compatible.
Diffstat (limited to 'client/messagebox.cc')
-rw-r--r-- | client/messagebox.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/messagebox.cc b/client/messagebox.cc index 902d2fd..a6058a6 100644 --- a/client/messagebox.cc +++ b/client/messagebox.cc @@ -41,7 +41,8 @@ static MessageBox::StandardButton showNewMessageBox(QWidget *parent, MessageBox::StandardButton defaultButton) { QMessageBox msgBox(icon, title, text, MessageBox::NoButton, parent); - QDialogButtonBox *buttonBox = qFindChild<QDialogButtonBox*>(&msgBox); + QDialogButtonBox *buttonBox = msgBox.findChild<QDialogButtonBox*>(); + Q_ASSERT(buttonBox != 0); uint mask = MessageBox::FirstButton; |