File 0001-Fix-accept-multiple-licenses.diff of Package apper.openSUSE_13.1_Update
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Sun, 27 Oct 2013 14:56:17 +0000
Subject: Fix accepting multiple license agreements
X-Git-Url: http://quickgit.kde.org/?p=apper.git&a=commitdiff&h=91084eef8b999d04ef5b8cd6b140e2c4d8b942dd
---
Fix accepting multiple license agreements
This patch fixes the handling of more than one license agreement by
setting d->handlingActionRequired = false in requeueTransaction().
Before, this was still true when entering slotEulaRequired() for the
second license. That one was not shown therefore, but Apper aborted
instead.
BUG: 326619
---
--- a/libapper/PkTransaction.cpp
+++ b/libapper/PkTransaction.cpp
@@ -304,6 +304,11 @@
d->simulateModel->deleteLater();
d->simulateModel = 0;
}
+
+ // We are not handling any required action yet for the requeued transaction.
+ // Without this a second license agreement f.e. does not get shown,
+ // see http://bugs.kde.org/show_bug.cgi?id=326619
+ d->handlingActionRequired = false;
switch (d->originalRole) {
case Transaction::RoleRemovePackages: