Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joao Oliveira
Okular
Commits
24006bb9
Commit
24006bb9
authored
Jan 29, 2015
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Applications/14.12'
Conflicts: VERSION core/version.h
parents
557b5447
4ad7da97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
part.cpp
part.cpp
+6
-4
No files found.
part.cpp
View file @
24006bb9
...
...
@@ -1325,18 +1325,20 @@ bool Part::openFile()
if
(
!
isstdin
&&
!
fileInfo
.
exists
()
)
return
false
;
KMimeType
::
Ptr
pathMime
=
KMimeType
::
findByPath
(
fileNameToOpen
);
if
(
!
arguments
().
mimeType
().
isEmpty
()
)
const
QString
argMimeType
=
arguments
().
mimeType
();
if
(
!
argMimeType
.
isEmpty
()
)
{
KMimeType
::
Ptr
argMime
=
KMimeType
::
mimeType
(
arg
uments
().
mimeType
()
);
KMimeType
::
Ptr
argMime
=
KMimeType
::
mimeType
(
arg
MimeType
);
// Select the "childmost" mimetype, if none of them
// inherits the other trust more what pathMime says
// but still do a second try if that one fails
if
(
argMime
->
is
(
pathMime
->
name
()
)
)
if
(
argMime
&&
argMime
->
is
(
pathMime
->
name
()
)
)
{
mimes
<<
argMime
;
}
else
if
(
pathMime
->
is
(
argMime
->
name
()
)
)
else
if
(
!
argMime
||
pathMime
->
is
(
argMime
->
name
()
)
)
{
mimes
<<
pathMime
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment