Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 40665 Details for
Bug 30133
kdebase can depend on enscript if user wants to print and convert text files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
kdeprint-check-filters.patch
kdeprint-check-filters.patch (text/plain), 2.07 KB, created by
Gregorio Guidi (RETIRED)
on 2004-09-28 15:32:42 UTC
(
hide
)
Description:
kdeprint-check-filters.patch
Filename:
MIME Type:
Creator:
Gregorio Guidi (RETIRED)
Created:
2004-09-28 15:32:42 UTC
Size:
2.07 KB
patch
obsolete
>Index: kdeprint/kprinterimpl.cpp >=================================================================== >RCS file: /home/kde/kdelibs/kdeprint/kprinterimpl.cpp,v >retrieving revision 1.58 >diff -u -3 -b -r1.58 kprinterimpl.cpp >--- kdeprint/kprinterimpl.cpp 15 Mar 2004 10:27:38 -0000 1.58 >+++ kdeprint/kprinterimpl.cpp 28 Sep 2004 22:18:14 -0000 >@@ -507,20 +507,15 @@ > QStringList flist = KXmlCommandManager::self()->autoConvert(mime, primaryMimeType); > if (flist.count() == 0) > { >- if (KMessageBox::warningYesNo(NULL, >- i18n("No appropriate filter was found to convert the file " >- "format %1 into %2. Do you want to print the " >- "file using its original format?").arg(mime).arg(primaryMimeType), >- QString::null, >- i18n("Print"), >- i18n("Skip")) == KMessageBox::No) >- { >+ KMessageBox::error(NULL, >+ i18n("<qt>No appropriate filter was found to convert the file format %1 into %2.\n" >+ "Go to <i>System Options -> Commands</i> to look through the list of " >+ "possible filters and to see the external programs they require to be " >+ "available.</qt>").arg(mime).arg(primaryMimeType), >+ i18n("Print")); > if (flag) > QFile::remove(*it); > it = files.remove(it); >- } >- else >- ++it; > continue; > } > QStringList l(*it); >Index: kdeprint/kxmlcommand.cpp >=================================================================== >RCS file: /home/kde/kdelibs/kdeprint/kxmlcommand.cpp,v >retrieving revision 1.21 >diff -u -3 -b -r1.21 kxmlcommand.cpp >--- kdeprint/kxmlcommand.cpp 15 Mar 2004 10:27:38 -0000 1.21 >+++ kdeprint/kxmlcommand.cpp 28 Sep 2004 22:18:15 -0000 >@@ -733,6 +733,10 @@ > const QValueList<KXmlCommand*> l = d->m_mimemap[mimesrc]; > for (QValueList<KXmlCommand*>::ConstIterator it=l.begin(); it!=l.end(); ++it) > { >+ // check filter availability >+ if (!KdeprintChecker::check((*it)->requirements())) >+ continue; >+ > // direct filter: shortest path => return immediately > if ((*it)->mimeType() == mimedest) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30133
:
22220
| 40665