comparison ui/mainwindow.cpp @ 918:e5fd2d0cf42f

(issue63) Add warning message when installation is not as admin
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 20 Aug 2014 18:55:53 +0200
parents f89b41fa7048
children ca997bc0f790
comparison
equal deleted inserted replaced
917:6978381671eb 918:e5fd2d0cf42f
1156 unselected << mUpdatesNew->unselectedCertificates(); 1156 unselected << mUpdatesNew->unselectedCertificates();
1157 unselected << mUpdatesRemove->unselectedCertificates(); 1157 unselected << mUpdatesRemove->unselectedCertificates();
1158 unselected << mInstallList->unselectedCertificates(); 1158 unselected << mInstallList->unselectedCertificates();
1159 unselected << mRemoveList->unselectedCertificates(); 1159 unselected << mRemoveList->unselectedCertificates();
1160 1160
1161 #ifdef Q_OS_WIN
1162 if (!is_admin() || !is_system_install()) {
1163 QMessageBox::information(this,
1164 tr("Installation as normal user."),
1165 tr("TrustBridge does not have the necessary privileges to install the certificates silently.") + "\n" +
1166 tr("Windows will explicitly ask you to verify every modification TrustBridge intends to make."));
1167 }
1168 #endif
1169
1161 QProgressDialog *progress = new QProgressDialog(this); 1170 QProgressDialog *progress = new QProgressDialog(this);
1162 progress->setWindowModality(Qt::WindowModal); 1171 progress->setWindowModality(Qt::WindowModal);
1163 progress->setLabelText(tr("Installing certificates...")); 1172 progress->setLabelText(tr("Installing certificates..."));
1164 progress->setCancelButton(0); 1173 progress->setCancelButton(0);
1165 progress->setRange(0,0); 1174 progress->setRange(0,0);

http://wald.intevation.org/projects/trustbridge/