Skip to content

Commit

Permalink
Updater: Added a "Reinstall" button when up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 18, 2012
1 parent cae70c8 commit bf93ed0
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -175,8 +175,11 @@ struct UpdateAvailableDialog::Instance
}
else
{
QPushButton* reinst = bbox->addButton(tr("&Reinstall"), QDialogButtonBox::YesRole);
QPushButton* ok = bbox->addButton(tr("&Close"), QDialogButtonBox::RejectRole);
QObject::connect(reinst, SIGNAL(clicked()), self, SLOT(accept()));
QObject::connect(ok, SIGNAL(clicked()), self, SLOT(reject()));
reinst->setAutoDefault(false);
ok->setDefault(true);
}

Expand Down

0 comments on commit bf93ed0

Please sign in to comment.