Fix share menu not showing the first time it is used

Authored by faridb on Jun 3 2018, 6:05 AM.

Description

Fix share menu not showing the first time it is used

Summary:
When the share menu is clicked for the first time (kipi plugins are not loaded
yet) the share menu doesn't work because updateMenu() clears the menu before any
plugin is available, thus the menu is empty and nothing is shown.

updateMenu() should be called when init() is triggered by loadingFinished() and not
when it's triggered by aboutToShow().

Test Plan:

  • Start an new instance of Gwenview
  • Click on 'Share'
  • The share menu should show the first time without having to click 'Share' a second

time

Reviewers: Gwenview, rkflx

Reviewed By: Gwenview, rkflx

Differential Revision: https://phabricator.kde.org/D13289

Details

Committed
rkflxJun 3 2018, 6:10 AM
Reviewer
Gwenview
Differential Revision
D13289: Fix share menu not showing the first time it is used
Parents
R260:3a772173e287: Watch for installation of kipi-plugins only when needed
Branches
Unknown
Tags
Unknown
References
tag: v18.04.2