23 #include <QPushButton>
24 #include <QMessageBox>
35 btn =
ui.buttonBox->button(QDialogButtonBox::Ok);
36 btn->setText(tr(
"Restart Vidalia"));
38 btn =
ui.buttonBox->button(QDialogButtonBox::Cancel);
39 btn->setText(tr(
"Don't Restart"));
62 QString args =
_annotations.value(
"RestartExecutableArgs");
64 if (! QProcess::startDetached(exe, argList, QFileInfo(exe).absolutePath())) {
65 QMessageBox dlg(QMessageBox::Warning, tr(
"Unable to restart Vidalia"),
66 tr(
"We were unable to automatically restart Vidalia. "
67 "Please restart Vidalia manually."),
68 QMessageBox::Ok,
this);