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:02 +0100
commitcc2595a8041f0e863c786ff0d028561cb3f40552 (patch)
tree7abb937aaa860f7196401fa3c1db8944b647c87b
parent8444076007090fc521be256b91d8d8d9180386f6 (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/+/109889 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 fae6a155220e..d50005766926 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 e5d88c7e1668..23f70225eb74 100644
--- a/vcl/unx/generic/print/prtsetup.hxx
+++ b/vcl/unx/generic/print/prtsetup.hxx
@@ -119,6 +119,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:
RTSDevicePage(weld::Widget* pPage, RTSDialog* pDialog);