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/+/109888
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx
index 5ad90b7..33cfc7a 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 6da7b9a..cb1919a 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: