diff options
Diffstat (limited to 'tdeprint/lpr/matichandler.cpp')
-rw-r--r-- | tdeprint/lpr/matichandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeprint/lpr/matichandler.cpp b/tdeprint/lpr/matichandler.cpp index 8d7bf0b37..aae4bbe03 100644 --- a/tdeprint/lpr/matichandler.cpp +++ b/tdeprint/lpr/matichandler.cpp @@ -224,7 +224,7 @@ DrMain* MaticHandler::loadDriver(KMPrinter*, PrintcapEntry *entry, bool) // is not self-contained. If the printer is removed (when // changing printer name), the template would be also removed TQString origfilename = maticFile(entry); - TQString filename = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); + TQString filename = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8)); ::system(TQFile::encodeName("cp " + TDEProcess::quote(origfilename) + " " + TDEProcess::quote(filename))); DrMain *driver = Foomatic2Loader::loadDriver(filename); if (driver) @@ -246,7 +246,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path) return NULL; } - TQString tmpFile = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); + TQString tmpFile = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8)); TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin"); TQString exe = TDEStandardDirs::findExe("foomatic-datafile", PATH); if (exe.isEmpty()) @@ -291,7 +291,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path) bool MaticHandler::savePrinterDriver(KMPrinter *prt, PrintcapEntry *entry, DrMain *driver, bool*) { - TQFile tmpFile(locateLocal("tmp", "foomatic_" + kapp->randomString(8))); + TQFile tmpFile(locateLocal("tmp", "foomatic_" + tdeApp->randomString(8))); TQFile inFile(driver->get("template")); TQString outFile = maticFile(entry); bool result(false); |