[Libreoffice-commits] core.git: cui/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Mon Apr 16 06:50:45 UTC 2018
cui/source/dialogs/SignSignatureLineDialog.cxx | 3 +++
cui/source/inc/SignSignatureLineDialog.hxx | 1 +
2 files changed, 4 insertions(+)
New commits:
commit df5e2026e5807219979bd74a4e036cf5fa5224ad
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Fri Apr 13 17:28:06 2018 +0200
tdf#83877 Also check button state when changing text
Change-Id: I41651707085fb8e2b0c8702590f88d7dc4dd6621
Reviewed-on: https://gerrit.libreoffice.org/52845
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx b/cui/source/dialogs/SignSignatureLineDialog.cxx
index 7c3d6a6f4eef..cf2ad66dba81 100644
--- a/cui/source/dialogs/SignSignatureLineDialog.cxx
+++ b/cui/source/dialogs/SignSignatureLineDialog.cxx
@@ -71,6 +71,7 @@ SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget* pParent, Referenc
m_xBtnChooseCertificate->connect_clicked(
LINK(this, SignSignatureLineDialog, chooseCertificate));
+ m_xEditName->connect_changed(LINK(this, SignSignatureLineDialog, entryChanged));
// Read properties from selected signature line
m_xShapeProperties->getPropertyValue("SignatureLineId") >>= m_aSignatureLineId;
@@ -125,6 +126,8 @@ IMPL_LINK_NOARG(SignSignatureLineDialog, chooseCertificate, weld::Button&, void)
ValidateFields();
}
+IMPL_LINK_NOARG(SignSignatureLineDialog, entryChanged, weld::Entry&, void) { ValidateFields(); }
+
void SignSignatureLineDialog::ValidateFields()
{
bool bEnable = m_xSelectedCertifate.is() && !m_xEditName->get_text().isEmpty();
diff --git a/cui/source/inc/SignSignatureLineDialog.hxx b/cui/source/inc/SignSignatureLineDialog.hxx
index 926f2ba76d3c..72f9c1a40882 100644
--- a/cui/source/inc/SignSignatureLineDialog.hxx
+++ b/cui/source/inc/SignSignatureLineDialog.hxx
@@ -40,6 +40,7 @@ private:
virtual void Apply() override;
DECL_LINK(chooseCertificate, weld::Button&, void);
+ DECL_LINK(entryChanged, weld::Entry&, void);
};
#endif
More information about the Libreoffice-commits
mailing list