summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-11-26 08:26:16 (GMT)
committerPino Toscano <pino@kde.org>2016-11-26 08:26:16 (GMT)
commitbf0bd72dd2333c29c9cf5dea8cfa031b03676796 (patch)
treeaf4786846223eb7de62eceb0a98e4c3a532e1159
parentc990b7d3b13900b0e392e2664d0819f4847c9e54 (diff)
java: set names in permission dialog
This makes sure the reply from the user is used and sent back. Fixes commit b68911a60306e53123430b55f24a5fa5ab4e7873. (manual backport of commit 856a96852f566ed7eb855810e347f95003c25017 and commit bd4be07823e422fa15bf4273e0bb9df35b866e35 from khtml)
-rw-r--r--khtml/java/kjavaappletserver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/khtml/java/kjavaappletserver.cpp b/khtml/java/kjavaappletserver.cpp
index cece008..7246db9 100644
--- a/khtml/java/kjavaappletserver.cpp
+++ b/khtml/java/kjavaappletserver.cpp
@@ -808,16 +808,20 @@ QString PermissionDialog::exec( const QString & cert, const QString & perm ) {
buttonLayout->setObjectName("buttonLayout");
QPushButton* const no = new QPushButton( i18n("&No"), dialog );
+ no->setObjectName( "no" );
no->setDefault( true );
buttonLayout->addWidget( no );
QPushButton* const reject = new QPushButton( i18n("&Reject All"), dialog );
+ reject->setObjectName( "reject" );
buttonLayout->addWidget( reject );
QPushButton* const yes = new QPushButton( i18n("&Yes"), dialog );
+ yes->setObjectName( "yes" );
buttonLayout->addWidget( yes );
QPushButton* const grant = new QPushButton( i18n("&Grant All"), dialog );
+ grant->setObjectName( "grant" );
buttonLayout->addWidget( grant );
dialogLayout->addLayout( buttonLayout );
dialog->resize( dialog->minimumSizeHint() );