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