Commit c77a6772 authored by Camilo higuita's avatar Camilo higuita
Browse files

push stabilizing changes

parent ff5b43e9
......@@ -106,12 +106,14 @@ bool TagsList::remove(const int& index)
void TagsList::removeFrom(const int& index, const QString& key, const QString& lot)
{
if(index >= this->list.size() || index < 0)
return;
return;
emit this->preItemRemoved(index);
auto item = this->list.takeAt(index);
this->tag->removeAbstractTag(key, lot, item[TAG::KEYS::TAG]);
emit this->postItemRemoved();
if(this->tag->removeAbstractTag(key, lot, this->list[index][TAG::KEYS::TAG]))
{
emit this->preItemRemoved(index);
this->list.removeAt(index);
emit this->postItemRemoved();
}
}
void TagsList::removeFrom(const int& index, const QString& url)
......
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