Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
3dd7628f
Commit
3dd7628f
authored
Oct 31, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lost icons for favorite c++ tools.
parent
aa32cc7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
UBFeaturesController.cpp
src/board/UBFeaturesController.cpp
+5
-5
No files found.
src/board/UBFeaturesController.cpp
View file @
3dd7628f
...
...
@@ -566,7 +566,7 @@ void UBFeaturesController::addToFavorite( const QUrl &path )
{
QFileInfo
fileInfo
(
filePath
);
QString
fileName
=
fileInfo
.
fileName
();
UBFeatureElementType
type
=
fileTypeFromUrl
(
file
Info
.
absoluteFilePath
()
);
UBFeatureElementType
type
=
fileTypeFromUrl
(
file
Path
);
UBFeature
elem
(
favoritePath
+
"/"
+
fileName
,
getIcon
(
filePath
,
type
),
fileName
,
path
,
fileTypeFromUrl
(
filePath
)
);
favoriteSet
->
insert
(
path
);
saveFavoriteList
();
...
...
@@ -603,15 +603,17 @@ UBFeatureElementType UBFeaturesController::fileTypeFromUrl(const QString &path)
{
QFileInfo
fileInfo
(
path
);
if
(
path
.
contains
(
"uniboardTool://"
))
return
FEATURE_INTERNAL
;
if
(
!
fileInfo
.
exists
())
{
return
FEATURE_INVALID
;
}
UBFeatureElementType
fileType
=
FEATURE_INVALID
;
QString
fileName
=
fileInfo
.
fileName
();
QString
mimeString
=
UBFileSystemUtils
::
mimeTypeFromFileName
(
fileName
);
UBFeatureElementType
fileType
=
FEATURE_INVALID
;
if
(
mimeString
.
contains
(
"application"
))
{
if
(
mimeString
.
contains
(
"application/search"
))
{
fileType
=
FEATURE_SEARCH
;
...
...
@@ -620,8 +622,6 @@ UBFeatureElementType UBFeaturesController::fileTypeFromUrl(const QString &path)
}
else
{
fileType
=
FEATURE_INTERACTIVE
;
}
}
else
if
(
path
.
contains
(
"uniboardTool://"
))
{
fileType
=
FEATURE_INTERNAL
;
}
else
if
(
mimeString
.
contains
(
"audio"
))
{
fileType
=
FEATURE_AUDIO
;
}
else
if
(
mimeString
.
contains
(
"video"
))
{
...
...
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