From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/confirmdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/confirmdialog.cpp') diff --git a/src/gui/confirmdialog.cpp b/src/gui/confirmdialog.cpp index b75a519fd..f66d44132 100644 --- a/src/gui/confirmdialog.cpp +++ b/src/gui/confirmdialog.cpp @@ -46,12 +46,12 @@ ConfirmDialog::ConfirmDialog(const std::string &title, const std::string &msg, mTextBox->setOpaque(false); mTextBox->setTextWrapped(msg, 260); - Button *const yesButton = new Button(_("Yes"), "yes", this); - Button *const noButton = new Button(_("No"), "no", this); + Button *const yesButton = new Button(this, _("Yes"), "yes", this); + Button *const noButton = new Button(this, _("No"), "no", this); Button *ignoreButton = nullptr; if (ignore) - ignoreButton = new Button(_("Ignore"), "ignore", this); + ignoreButton = new Button(this, _("Ignore"), "ignore", this); const int numRows = mTextBox->getNumberOfRows(); int inWidth = yesButton->getWidth() + noButton->getWidth() + -- cgit v1.2.3-70-g09d2