[PATCH 1 of 2] Emit list changed when certificates are added or removed

Wald Commits scm-commit at wald.intevation.org
Tue Jul 1 17:20:10 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404227942 -7200
# Node ID 0f4c480c41f4be7ba0c648d8cb80196d7e6796bb
# Parent  25a73bfec35925e64165846b3c90de839163d5b4
Emit list changed when certificates are added or removed

diff -r 25a73bfec359 -r 0f4c480c41f4 ui/certificatelistwidget.cpp
--- a/ui/certificatelistwidget.cpp	Tue Jul 01 16:53:31 2014 +0200
+++ b/ui/certificatelistwidget.cpp	Tue Jul 01 17:19:02 2014 +0200
@@ -85,6 +85,7 @@
         this, SLOT(certStateChanged(bool, const Certificate&)));
     item->setSizeHint(widget->minimumSizeHint());
     mCertificateList->setItemWidget(item, widget);
+    emit certListChanged(-1);
 }
 
 void CertificateListWidget::addCertificates(const QList<Certificate> &list)
@@ -103,6 +104,7 @@
             delete(item);
         }
     }
+    emit certListChanged(-1);
 }
 
 void CertificateListWidget::clear()


More information about the Trustbridge-commits mailing list