vcl/unx/generic/print/prtsetup.cxx | 9 +++++++++ vcl/unx/generic/print/prtsetup.hxx | 1 + 2 files changed, 10 insertions(+)
New commits: commit 07ec53a20caa416ba3f64f04151c3317313fa381 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jan 26 11:59:56 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jan 26 15:21:02 2021 +0100 Resolves: tdf#106484 Print Properties Device tab dropdown change not detected probably since... commit 07602e5a8b869be1c45158cf71d6015d17a5f797 Date: Wed Jun 24 17:31:32 2015 +0200 tdf#91362: Don't override printer page autodetection if printer settings haven't been modified Change-Id: I6a7cb7c7ae00d7d31defe7bc1d191a6bff3ff31c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109951 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx index 5ad90b7b878e..33cfc7a1fabe 100644 --- a/vcl/unx/generic/print/prtsetup.cxx +++ b/vcl/unx/generic/print/prtsetup.cxx @@ -286,6 +286,10 @@ RTSDevicePage::RTSDevicePage(weld::Widget* pPage, RTSDialog* pParent) m_xPPDKeyBox->connect_changed( LINK( this, RTSDevicePage, SelectHdl ) ); m_xPPDValueBox->connect_changed( LINK( this, RTSDevicePage, SelectHdl ) ); + m_xLevelBox->connect_changed(LINK(this, RTSDevicePage, ComboChangedHdl)); + m_xSpaceBox->connect_changed(LINK(this, RTSDevicePage, ComboChangedHdl)); + m_xDepthBox->connect_changed(LINK(this, RTSDevicePage, ComboChangedHdl)); + switch( m_pParent->m_aJobData.m_nColorDevice ) { case 0: @@ -437,6 +441,11 @@ IMPL_LINK( RTSDevicePage, SelectHdl, weld::TreeView&, rBox, void ) m_pParent->SetDataModified( true ); } +IMPL_LINK_NOARG( RTSDevicePage, ComboChangedHdl, weld::ComboBox&, void ) +{ + m_pParent->SetDataModified( true ); +} + void RTSDevicePage::FillValueBox( const PPDKey* pKey ) { m_xPPDValueBox->clear(); diff --git a/vcl/unx/generic/print/prtsetup.hxx b/vcl/unx/generic/print/prtsetup.hxx index 6da7b9aa6757..cb1919a15da7 100644 --- a/vcl/unx/generic/print/prtsetup.hxx +++ b/vcl/unx/generic/print/prtsetup.hxx @@ -121,6 +121,7 @@ private: DECL_LINK(SelectHdl, weld::TreeView&, void); DECL_LINK(ModifyHdl, weld::Entry&, void); + DECL_LINK(ComboChangedHdl, weld::ComboBox&, void); DECL_LINK(ImplHandleReselectHdl, Timer*, void); public: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits