diff options
author | David Tardon <dtardon@redhat.com> | 2016-01-26 11:40:58 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-01-28 13:19:31 +0100 |
commit | 4bc37b7e804fbfe17f8f516487d16ea23a0b246e (patch) | |
tree | ea9f6fbfdf36b9598ac7fbcdd2f7b011efae7fd2 /svtools | |
parent | 0513fdc7ea03b2744c2eabeb936286efca562338 (diff) |
Related: rhbz#1168756 save chosen printer also in print settings dlg
Change-Id: Ie750d36f804189828a24c99c6b4507d57322c541
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/prnsetup.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx index ef75158c66d0..7a3cbf3b214f 100644 --- a/svtools/source/dialogs/prnsetup.cxx +++ b/svtools/source/dialogs/prnsetup.cxx @@ -20,6 +20,7 @@ #include <svtools/prnsetup.hxx> #include <svtools/svtools.hrc> #include <svtools/svtresid.hxx> +#include <vcl/configsettings.hxx> #include <vcl/print.hxx> @@ -370,6 +371,10 @@ short PrinterSetupDialog::Execute() { if ( mpTempPrinter ) mpPrinter->SetPrinterProps( mpTempPrinter ); + + vcl::SettingsConfigItem* const pItem = vcl::SettingsConfigItem::get(); + pItem->setValue("PrintDialog", "LastPrinter", mpPrinter->GetName()); + pItem->Commit(); } maStatusTimer.Stop(); |