Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Wed Aug 20 18:22:41 2014 +0200 +++ b/ui/mainwindow.cpp Wed Aug 20 18:55:53 2014 +0200 @@ -1158,6 +1158,15 @@ unselected << mInstallList->unselectedCertificates(); unselected << mRemoveList->unselectedCertificates(); +#ifdef Q_OS_WIN + if (!is_admin() || !is_system_install()) { + QMessageBox::information(this, + tr("Installation as normal user."), + tr("TrustBridge does not have the necessary privileges to install the certificates silently.") + "\n" + + tr("Windows will explicitly ask you to verify every modification TrustBridge intends to make.")); + } +#endif + QProgressDialog *progress = new QProgressDialog(this); progress->setWindowModality(Qt::WindowModal); progress->setLabelText(tr("Installing certificates..."));