Commit 887a2afc authored by camilo higuita's avatar camilo higuita

correct crash issue on thread loop

parent c9987685
...@@ -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;
}
} }
}; };
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment