Verified Commit 8f06e1d4 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

urlmodel: save after additions and deletions

parent b7e667b7
......@@ -228,6 +228,7 @@ void UrlModel::add(const QJsonObject &data)
beginInsertRows(QModelIndex(), m_data.size(), m_data.size());
m_data.append(data);
endInsertRows();
save();
}
void UrlModel::remove(const QString &url)
......@@ -240,6 +241,7 @@ void UrlModel::remove(const QString &url)
endRemoveRows();
// int n = m_data.count();
// qDebug() << "!!! Removed: " << url << " now" << m_data.count() << " was " << n;
save();
return;
}
}
......
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