[Digikam-devel] [digikam] [Bug 363697] Album visible even after deletion

Johannes Hirte via KDE Bugzilla bugzilla_noreply at kde.org
Wed Jun 22 23:51:51 BST 2016


https://bugs.kde.org/show_bug.cgi?id=363697

--- Comment #7 from Johannes Hirte <johannes.hirte at datenkhaos.de> ---
Of course, foreign key checks is part of the problem. Disabling this with:

    d->db->execSql(QString("SET FOREIGN_KEY_CHECKS = 0;"));
    d->db->execSql(QString("UPDATE Albums SET albumRoot=0, relativePath=? WHERE
id=?;"),
                   newRelativePath, albumID);

    // for now, we make no distinction to deleteAlbums wrt to changeset
    d->db->recordChangeset(AlbumChangeset(albumID, AlbumChangeset::Deleted));
    d->db->execSql(QString("SET FOREIGN_KEY_CHECKS = 1;"));

will make deletion of albums work. But I'm not sure, if this is really the
right way to fix this.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list