LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apper-accept-eula.diff of Package apper.102 (Project openSUSE:12.1:Update)

Index: apper-0.7.0/libapper/PkTransaction.cpp
===================================================================
--- apper-0.7.0.orig/libapper/PkTransaction.cpp
+++ apper-0.7.0/libapper/PkTransaction.cpp
@@ -546,7 +546,7 @@ void PkTransaction::eulaRequired(Package
     }
 
     LicenseAgreement *eula = new LicenseAgreement(info, this);
-    connect(eula, SIGNAL(accepted()), this, SLOT(installSignature()));
+    connect(eula, SIGNAL(yesClicked()), this, SLOT(acceptEula()));
     connect(eula, SIGNAL(rejected()), this, SLOT(reject()));
     showDialog(eula);
 }
@@ -560,11 +560,11 @@ void PkTransaction::acceptEula()
         setTransaction(trans, Transaction::RoleAcceptEula);
         trans->acceptEula(eula->id());
         if (trans->error()) {
-            showSorry(i18n("Failed to install signature"),
+            showSorry(i18n("Failed to accept EULA"),
                       PkStrings::daemonError(trans->error()));
         }
     } else {
-        kWarning() << "something is broken";
+        kWarning() << "something is broken, slot is bound to LicenseAgreement but signalled from elsewhere.";
     }
 }