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()
// });
QObject::connect(this, &AlbumsModel::destroyed, [&]()
{
// loop.quit();
stop = true;
});
......@@ -208,7 +208,10 @@ void AlbumsModel::fetchInformation()
pulpo.request(requests.at(i));
loop.exec();
if(stop)
{
loop.quit();
return;
}
}
};
......
......@@ -35,20 +35,21 @@ BabeList
signal playSync(int index)
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
{
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