Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flatpak-qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Bubke
flatpak-qt-creator
Commits
6c580fd7
Commit
6c580fd7
authored
14 years ago
by
kh1
Browse files
Options
Downloads
Patches
Plain Diff
Make sure we can open local files as well.
Reviewed-by: ck
parent
9aa64498
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/help/helpviewer.cpp
+1
-7
1 addition, 7 deletions
src/plugins/help/helpviewer.cpp
src/plugins/help/helpviewer_qwv.cpp
+1
-3
1 addition, 3 deletions
src/plugins/help/helpviewer_qwv.cpp
with
2 additions
and
10 deletions
src/plugins/help/helpviewer.cpp
+
1
−
7
View file @
6c580fd7
...
...
@@ -94,13 +94,7 @@ struct ExtensionMap {
bool
HelpViewer
::
isLocalUrl
(
const
QUrl
&
url
)
{
const
QString
&
scheme
=
url
.
scheme
();
return
scheme
.
isEmpty
()
||
scheme
==
QLatin1String
(
"file"
)
||
scheme
==
QLatin1String
(
"qrc"
)
||
scheme
==
QLatin1String
(
"data"
)
||
scheme
==
QLatin1String
(
"qthelp"
)
||
scheme
==
QLatin1String
(
"about"
);
return
url
.
scheme
()
==
QLatin1String
(
"qthelp"
);
}
bool
HelpViewer
::
canOpenPage
(
const
QString
&
url
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/help/helpviewer_qwv.cpp
+
1
−
3
View file @
6c580fd7
...
...
@@ -124,10 +124,8 @@ HelpNetworkAccessManager::HelpNetworkAccessManager(QObject *parent)
QNetworkReply
*
HelpNetworkAccessManager
::
createRequest
(
Operation
op
,
const
QNetworkRequest
&
request
,
QIODevice
*
outgoingData
)
{
if
(
!
HelpViewer
::
isLocalUrl
(
request
.
url
())
&&
request
.
url
().
scheme
()
==
QLatin1String
(
"http"
))
{
if
(
!
HelpViewer
::
isLocalUrl
(
request
.
url
()))
return
QNetworkAccessManager
::
createRequest
(
op
,
request
,
outgoingData
);
}
QString
url
=
request
.
url
().
toString
();
const
QHelpEngineCore
&
engine
=
LocalHelpManager
::
helpEngine
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment