diff --git a/include/printer.cpp b/include/printer.cpp index c885194cc..79c9cbea1 100755 --- a/include/printer.cpp +++ b/include/printer.cpp @@ -1713,6 +1713,19 @@ bool TPrinter::open() } else #endif + { + TToken_string& pn2 = getprinternames(); // get printer names + + TString80 pdev(pn2.get(_curprn)); // Nome stampante corrente + + char szDevice[80]; + GetProfileString ("devices", pdev, "", szDevice, sizeof (szDevice)); + pdev << "," << szDevice; + + // scrivi (e semmai lo si risistema poi) + + WriteProfileString("windows", "device", pdev); + if (_printertype == screenvis) { CHECK(_vf == NULL, "Print preview already open"); @@ -1733,6 +1746,7 @@ bool TPrinter::open() if (isfax()) start_fax_server(); } + } #if XVT_OS==XVT_OS_SCOUNIX else { @@ -1777,7 +1791,7 @@ bool TPrinter::set() const bool can_save = _config == "Printer"; mask.enable(DLG_OK, can_save); - mask.enable(DLG_SAVEREC, can_save); +// mask.enable(DLG_SAVEREC, can_save); #if XVT_OS == XVT_OS_WIN @@ -2050,7 +2064,8 @@ if (_finker) delete _finker; _finker = NULL; } -_isopen = FALSE; + _isopen = FALSE; + WriteProfileString("windows", "device", defPrinter); } //