Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jangernert/FeedReader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldo Gunsing <dev@aldogunsing.nl>2018-11-27 14:37:41 +0300
committerAldo Gunsing <dev@aldogunsing.nl>2018-11-29 20:33:57 +0300
commitd60546d20718efa3767f3134465020b731d72280 (patch)
tree6bef8055b469b6ed5442205596e9db0e02f90273
parent420fdcdacd7079f897c9c3176352acbf3f00f47d (diff)
Use db.read_category instead of removed db.category_exists
-rw-r--r--plugins/backend/decsync/decsyncInterface.vala2
-rw-r--r--plugins/backend/decsync/decsyncListeners.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/backend/decsync/decsyncInterface.vala b/plugins/backend/decsync/decsyncInterface.vala
index 84599d16..a1bc8649 100644
--- a/plugins/backend/decsync/decsyncInterface.vala
+++ b/plugins/backend/decsync/decsyncInterface.vala
@@ -470,7 +470,7 @@ public class FeedReader.decsyncInterface : Peas.ExtensionBase, FeedServerInterfa
public string createCategory(string title, string? parentID)
{
string? catID = m_db.getCategoryID(title);
- while (catID == null || m_db.category_exists(catID))
+ while (catID == null || m_db.read_category(catID) != null)
{
catID = "catID%05d".printf(Random.int_range(0, 100000));
}
diff --git a/plugins/backend/decsync/decsyncListeners.vala b/plugins/backend/decsync/decsyncListeners.vala
index 386ae361..8faaaaf5 100644
--- a/plugins/backend/decsync/decsyncListeners.vala
+++ b/plugins/backend/decsync/decsyncListeners.vala
@@ -266,7 +266,7 @@ public class FeedReader.DecsyncListeners : GLib.Object {
private static void addCategory(decsyncInterface plugin, string catID)
{
- if (catID == plugin.uncategorizedID() || catID == CategoryID.MASTER.to_string() || plugin.m_db.category_exists(catID))
+ if (catID == plugin.uncategorizedID() || catID == CategoryID.MASTER.to_string() || plugin.m_db.read_category(catID) != null)
{
return;
}