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
Vvave
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
Maui
Vvave
Commits
887a2afc
Commit
887a2afc
authored
Jun 23, 2019
by
camilo higuita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct crash issue on thread loop
parent
c9987685
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
models/albums/albumsmodel.cpp
models/albums/albumsmodel.cpp
+4
-1
widgets/PlaylistsView/PlaylistsViewModel.qml
widgets/PlaylistsView/PlaylistsViewModel.qml
+14
-13
No files found.
models/albums/albumsmodel.cpp
View file @
887a2afc
...
@@ -199,7 +199,7 @@ void AlbumsModel::fetchInformation()
...
@@ -199,7 +199,7 @@ void AlbumsModel::fetchInformation()
// });
// });
QObject
::
connect
(
this
,
&
AlbumsModel
::
destroyed
,
[
&
]()
QObject
::
connect
(
this
,
&
AlbumsModel
::
destroyed
,
[
&
]()
{
{
// loop.quit();
stop
=
true
;
stop
=
true
;
});
});
...
@@ -208,7 +208,10 @@ void AlbumsModel::fetchInformation()
...
@@ -208,7 +208,10 @@ void AlbumsModel::fetchInformation()
pulpo
.
request
(
requests
.
at
(
i
));
pulpo
.
request
(
requests
.
at
(
i
));
loop
.
exec
();
loop
.
exec
();
if
(
stop
)
if
(
stop
)
{
loop
.
quit
();
return
;
return
;
}
}
}
};
};
...
...
widgets/PlaylistsView/PlaylistsViewModel.qml
View file @
887a2afc
...
@@ -35,20 +35,21 @@ BabeList
...
@@ -35,20 +35,21 @@ BabeList
signal
playSync
(
int
index
)
signal
playSync
(
int
index
)
headBar.plegable
:
false
headBar.plegable
:
false
headBar.leftContent
:
Maui.ToolButton
{
id
:
createPlaylistBtn
anim
:
true
iconName
:
"
list-add
"
onClicked
:
newPlaylistDialog
.
open
()
}
headBar.rightContent
:
Maui.ToolButton
{
iconName
:
"
list-remove
"
onClicked
:
removePlaylist
()
}
headBar.rightContent
:
[
Maui.ToolButton
{
iconName
:
"
list-remove
"
onClicked
:
removePlaylist
()
},
Maui.ToolButton
{
id
:
createPlaylistBtn
anim
:
true
iconName
:
"
list-add
"
onClicked
:
newPlaylistDialog
.
open
()
}
]
BaseModel
BaseModel
{
{
id
:
_playlistsModel
id
:
_playlistsModel
...
...
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