summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-26 11:59:56 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-01-26 16:19:15 +0100
commit95617b04651ae9f515ced79760851123a7e09236 (patch)
tree27f764bcb935c90854efc211c5e24ec7d6d5c7a0
parente9779829283c7e56ce5bcee97db1a75c11f81b8c (diff)
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>
-rw-r--r--vcl/unx/generic/print/prtsetup.cxx9
-rw-r--r--vcl/unx/generic/print/prtsetup.hxx1
2 files changed, 10 insertions, 0 deletions
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: