[libreoffice/f20] Resolves: rhbz#1038189 refresh printer list when print dialog launched
Caolán McNamara
caolanm at fedoraproject.org
Wed Dec 4 16:52:07 UTC 2013
commit a963315020426fe03bab1831b1c3ecd32375a635
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Dec 4 16:52:01 2013 +0000
Resolves: rhbz#1038189 refresh printer list when print dialog launched
...bz-1038189-refresh-printer-list-when-prin.patch | 29 ++++++++++++++++++++
libreoffice.spec | 3 ++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/0001-Resolves-rhbz-1038189-refresh-printer-list-when-prin.patch b/0001-Resolves-rhbz-1038189-refresh-printer-list-when-prin.patch
new file mode 100644
index 0000000..318c888
--- /dev/null
+++ b/0001-Resolves-rhbz-1038189-refresh-printer-list-when-prin.patch
@@ -0,0 +1,29 @@
+From 02efbed152a3a9e364cdb73628af0aed0f5d6f7a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm at redhat.com>
+Date: Wed, 4 Dec 2013 16:48:08 +0000
+Subject: [PATCH] Resolves: rhbz#1038189 refresh printer list when print dialog
+ launched
+
+which is the the same thing the printer settings dialog does
+
+Change-Id: I36fb9f057b66faa8c9fce5a9934ed2fb70786363
+---
+ vcl/source/window/printdlg.cxx | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
+index b8cb188..21941ca 100644
+--- a/vcl/source/window/printdlg.cxx
++++ b/vcl/source/window/printdlg.cxx
+@@ -602,6 +602,8 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
+ // init reverse print
+ maJobPage.mpReverseOrderBox->Check( maPController->getReversePrint() );
+
++ Printer::updatePrinters();
++
+ // fill printer listbox
+ const std::vector< OUString >& rQueues( Printer::GetPrinterQueues() );
+ for( std::vector< OUString >::const_iterator it = rQueues.begin();
+--
+1.8.3.1
+
diff --git a/libreoffice.spec b/libreoffice.spec
index a6a23c9..70705d0 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -280,6 +280,7 @@ Patch39: 0001-Related-rhbz-1032774-bodge-around-reported-NULL-valu.patch
Patch40: 0001-rhbz-1030009-Remove-global-XModel-ref.patch
Patch41: 0001-Resolves-rhbz-1035092-no-shortcut-key-for-Italian-To.patch
Patch42: 0001-Resolves-rhbz-912529-Kerkis-SmallCaps-shown-instead-.patch
+Patch43: 0001-Resolves-rhbz-1038189-refresh-printer-list-when-prin.patch
%define instdir %{_libdir}
%define baseinstdir %{instdir}/libreoffice
@@ -1057,6 +1058,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
%patch40 -p1 -b .rhbz-1030009-Remove-global-XModel-ref.patch
%patch41 -p1 -b .rhbz-1035092-no-shortcut-key-for-Italian-To.patch
%patch42 -p1 -b .rhbz-912529-Kerkis-SmallCaps-shown-instead-.patch
+%patch43 -p1 -b .rhbz-1038189-refresh-printer-list-when-prin.patch
# TODO: check this
# these are horribly incomplete--empty translations and copied english
@@ -2148,6 +2150,7 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%changelog
* Wed Dec 04 2013 Caolán McNamara <caolanm at redhat.com> - 1:4.1.3.2-10
- Resolves: rhbz#912529 Kerkis SmallCaps shown instead of Kerkis Regular
+- Resolves: rhbz#1038189 refresh printer list when print dialog launched
* Tue Dec 03 2013 David Tardon <dtardon at redhat.com> - 1:4.1.3.2-9
- rhbz#1000893 do not pull in unneeded packages
More information about the scm-commits
mailing list