-
Summary: The connection to the database doesn't get closed, which leads to a leakage of file descriptors to kactivities database files, eventually reaching the open file limit. Also, sometimes warnings about duplicate connections may appear in the console. This patch fixes this by closing and removing the connection. Test Plan: # Right-click a file in Dolphin and hover the Activities menu. Do it several times. # Check the output of ``` ls -l /proc/`pidof dolphin`/fd ``` for open descriptors to ~/.local/share/kactivitymanagerd/resources/database{,-wal}. Reviewers: ivan, meven Reviewed By: meven Subscribers: meven, kde-frameworks-devel, kfm-devel Tags: #dolphin, #frameworks Differential Revision: https://phabricator.kde.org/D28739
8c3c27da