Bug 351585 - Context menu for linking files to activities keeps on flickering (opening/closing), doesn't allow linking files
Summary: Context menu for linking files to activities keeps on flickering (opening/clo...
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: fileitemplugin (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-21 20:54 UTC by Luca Beltrame
Modified: 2015-09-04 20:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.14


Attachments
Screencast showing the bug (2.51 MB, image/gif)
2015-08-21 21:12 UTC, Luca Beltrame
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Beltrame 2015-08-21 20:54:09 UTC
In recent master, if one right clicks on a file and moves to select the activity linking plugin, the context menu that opens immediately starts flickering (opening and closing, possibly), thus disallowing selection.

I will try to attach an animated gif / link to a video showing the issue

Reproducible: Always

Steps to Reproduce:
1. Right click on a file (FV / dolphin)
2. Mouse over to Activities
3. Move the mouse on "Link to current activitiy"

Actual Results:  
Menu starts flickering (opening/closing), making selection impossible

Expected Results:  
The menu should stay open and allow selection.
Comment 1 Luca Beltrame 2015-08-21 21:12:17 UTC
Created attachment 94156 [details]
Screencast showing the bug

Here's the video showing it, the effect is slower in the video, but you see it (actually it opens/closes several times per second).
Comment 2 Luca Beltrame 2015-08-21 21:14:12 UTC
It's also worth mentioning that when the behavior occurs, similar lines are outputted:

QSqlDatabasePrivate::addDatabase: duplicate connection name 'kactivities_db_resources_72749856', old connection removed.

several times.
Comment 3 Emmanuel Pescosta 2015-09-04 20:08:57 UTC
Git commit 821abd02047f15aceb106cd390df2cea502c72bf by Emmanuel Pescosta.
Committed on 04/09/2015 at 20:07.
Pushed by emmanuelp into branch 'master'.

Only spawn one action loader (thread) when the actions of the FileItemLinkingPlugin are not initialized
already.
Related: bug 352207
REVIEW: 125044
FIXED-IN: 5.14

M  +4    -1    src/workspace/fileitemplugin/FileItemLinkingPlugin.cpp
M  +1    -0    src/workspace/fileitemplugin/FileItemLinkingPlugin_p.h

http://commits.kde.org/kactivities/821abd02047f15aceb106cd390df2cea502c72bf