summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-02-09 10:18:28 +0100
committerDavid Tardon <dtardon@redhat.com>2016-02-10 15:08:41 +0100
commit35b5f9f1359c9467fe5b08cffc65cb2bfcaf93fb (patch)
treee6bbcf3ccb248e58aebd255b48a7cc24b6933c2f
parente6077ccc69c65156476f1855c5c9711814e8e226 (diff)
Revert "Related: rhbz#1168756 save chosen printer also in print settings dlg"
This is wrong--the printer should not be remembered globally, as it is only for the current document. This reverts commit 4bc37b7e804fbfe17f8f516487d16ea23a0b246e. Change-Id: Ic917470408dbf9ff704e485358463852a45b57a4
-rw-r--r--svtools/source/dialogs/prnsetup.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx
index 25401950732c..866372209aaf 100644
--- a/svtools/source/dialogs/prnsetup.cxx
+++ b/svtools/source/dialogs/prnsetup.cxx
@@ -20,7 +20,6 @@
#include <svtools/prnsetup.hxx>
#include <svtools/svtools.hrc>
#include <svtools/svtresid.hxx>
-#include <vcl/configsettings.hxx>
#include <vcl/print.hxx>
@@ -355,10 +354,6 @@ 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();