Bugzilla – Attachment 25355 Details for
Bug 62276
images don't work in gnome docs in khelpcenter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
alternative patch
kdoctools-picture-in-submenu.diff (text/x-diff), 1.87 KB, created by
Adrian Schröter
on 2004-10-24 20:22:31 UTC
(
hide
)
Description:
alternative patch
Filename:
MIME Type:
Creator:
Adrian Schröter
Created:
2004-10-24 20:22:31 UTC
Size:
1.87 KB
patch
obsolete
>--- kdoctools/kio_help.cpp.orig 2004-10-21 17:25:52.000000000 +0800 >+++ kdoctools/kio_help.cpp 2004-10-24 20:14:36.363376416 +0800 >@@ -55,7 +55,9 @@ > kdDebug( 7119 ) << "Looking up help for: " << fname << endl; > > QString path; >- int slash = fname.findRev ('/'); >+ while ( fname.at(0) == '/' ) >+ fname = fname.mid(1); >+ int slash = fname.find('/'); > if (slash == -1 || slash == 0) { > path = fname; > fname = ""; >@@ -66,21 +68,9 @@ > > QStringList langs = KGlobal::locale()->languageList(); > QStringList::ConstIterator lang; >- for (lang = langs.begin(); lang != langs.end(); ++lang) >- if (*lang == "en") >- search.append(QString("/opt/gnome/share/gnome/help/%1/C%2").arg(path).arg(fname)); >- else >- search.append(QString("/opt/gnome/share/gnome/help/%1/%2%3").arg(path).arg(*lang).arg(fname)); >- > langs.append( "en" ); > langs.remove( "C" ); > >- // this is kind of compat hack as we install our docs in en/ but the >- // default language is en_US >- for (QStringList::Iterator it = langs.begin(); it != langs.end(); ++it) >- if ( *it == "en_US" ) >- *it = "en"; >- > // look up the different languages > int ldCount = localDoc.count(); > for (int id=0; id < ldCount; id++) >@@ -90,6 +80,13 @@ > search.append(QString("%1%2/%3").arg(localDoc[id]).arg(*lang).arg(path + fname)); > } > >+ for (lang = langs.begin(); lang != langs.end(); ++lang) { >+ search.append(QString("/opt/gnome/share/gnome/help/%1/%2%3").arg(path).arg(*lang).arg(fname)); >+ if ( (*lang).length() > 2 ) >+ search.append(QString("/opt/gnome/share/gnome/help/%1/%2%3").arg(path).arg((*lang).left(2)).arg(fname)); >+ } >+ search.append(QString("/opt/gnome/share/gnome/help/%1/C%2").arg(path).arg(fname)); >+ > // try to locate the file > QStringList::Iterator it; > for (it = search.begin(); it != search.end(); ++it)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 62276
:
25039
| 25355 |
25376
|
25421