mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-31 09:34:52 +01:00
Correct custom ID assignments for standard acc.
This commit is contained in:
parent
0a4d5fa6c6
commit
127e43b952
@ -181,6 +181,13 @@ bool StandardCategory::addItself(RootItem *parent) {
|
||||
|
||||
setId(query_add.lastInsertId().toInt());
|
||||
setCustomId(id());
|
||||
|
||||
// Now set custom ID in the DB.
|
||||
query_add.prepare(QSL("UPDATE Categories SET custom_id = :custom_id WHERE id = :id;"));
|
||||
query_add.bindValue(QSL(":custom_id"), QString::number(customId()));
|
||||
query_add.bindValue(QSL(":id"), id());
|
||||
query_add.exec();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -521,6 +521,12 @@ bool StandardFeed::addItself(RootItem *parent) {
|
||||
setId(query_add_feed.lastInsertId().toInt());
|
||||
setCustomId(id());
|
||||
|
||||
// Now set custom ID in the DB.
|
||||
query_add_feed.prepare(QSL("UPDATE Feeds SET custom_id = :custom_id WHERE id = :id;"));
|
||||
query_add_feed.bindValue(QSL(":custom_id"), QString::number(customId()));
|
||||
query_add_feed.bindValue(QSL(":id"), id());
|
||||
query_add_feed.exec();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ void TtRssServiceRoot::addNewFeed(const QString &url) {
|
||||
}
|
||||
|
||||
void TtRssServiceRoot::addNewCategory() {
|
||||
// Do nothing.
|
||||
// NOTE: Do nothing.
|
||||
}
|
||||
|
||||
bool TtRssServiceRoot::canBeEdited() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user