fixed some MessagesBox's to display a default Window Icon

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3140 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-06-15 15:13:47 +00:00
parent b1c838d991
commit 6d3db4ae66

View file

@ -128,7 +128,7 @@ void StartDialog::loadPerson()
if (pgpidx < 0) if (pgpidx < 0)
{ {
/* Message Dialog */ /* Message Dialog */
QMessageBox::warning ( NULL, QMessageBox::warning ( this,
"Load Person Failure", "Load Person Failure",
"Missing PGP Certificate", "Missing PGP Certificate",
QMessageBox::Ok); QMessageBox::Ok);
@ -160,7 +160,7 @@ void StartDialog::loadCertificates()
else else
{ {
/* some error msg */ /* some error msg */
QMessageBox::warning ( NULL, QMessageBox::warning ( this,
tr("Login Failure"), tr("Login Failure"),
tr("Maybe password is wrong"), tr("Maybe password is wrong"),
QMessageBox::Ok); QMessageBox::Ok);
@ -171,16 +171,15 @@ void StartDialog::loadCertificates()
void StartDialog::on_labelProfile_linkActivated(QString link) void StartDialog::on_labelProfile_linkActivated(QString link)
{ {
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
tr("Create a New Profile"),
tr("This will generate a new Profile\n Are you sure you want to continue"),
(QMessageBox::Yes | QMessageBox::No));
if (sb == QMessageBox::Yes) if ((QMessageBox::question(this, tr("Create a New Profile"),tr("This will generate a new Profile\n Are you sure you want to continue?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
{ {
reqNewCert = true; reqNewCert = true;
close(); close();
} }
else
return;
} }
void StartDialog::on_labelInfo_linkActivated(QString link) void StartDialog::on_labelInfo_linkActivated(QString link)
@ -202,7 +201,7 @@ void StartDialog::notSecureWarning() {
/* some error msg */ /* some error msg */
if(ui.autologin_checkbox->isChecked()){ if(ui.autologin_checkbox->isChecked()){
QMessageBox::warning ( NULL, QMessageBox::warning ( this,
tr("Insecure"), tr("Insecure"),
tr("Auto Login is not so much secure:\n - Your SSL certificate will be stored unprotected. \n - Your PGP key will however not be stored.\nThis choice be reverted in settings."), tr("Auto Login is not so much secure:\n - Your SSL certificate will be stored unprotected. \n - Your PGP key will however not be stored.\nThis choice be reverted in settings."),
QMessageBox::Ok); QMessageBox::Ok);