Fix a todo in Information Panel, fixing two bugs
AbandonedPublic

Authored by meven on Mar 15 2019, 11:01 AM.

Details

Reviewers
elvisangelaccio
Group Reviewers
Dolphin
Summary

Fix a TODO : InformationPanelContent::configureSettings code is moved to InformationPanel::contextMenuEvent
Fix two bugs relating to preview window being shown when they should not.
Avoid computing previews when they are hidden.

Bugs examples :

Test Plan

Test the preview especially with videos.
Select a video with the preview on, play the video, toggle on and off the preview using the context menu.
Select a video file with a video file selected, disable the preview

Diff Detail

Repository
R318 Dolphin
Branch
fix-preview
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 9681
Build 9699: arc lint + arc unit
meven created this revision.Mar 15 2019, 11:01 AM
Restricted Application added a project: Dolphin. · View Herald TranscriptMar 15 2019, 11:01 AM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
meven requested review of this revision.Mar 15 2019, 11:01 AM
meven edited the summary of this revision. (Show Details)Mar 15 2019, 11:02 AM
meven edited the test plan for this revision. (Show Details)
meven edited the test plan for this revision. (Show Details)Mar 15 2019, 11:04 AM
anthonyfieroni added inline comments.
src/panels/information/informationpanel.cpp
168–214

Do not parent object on the stack, if its parent gets destroyed before, destructor will be called twice.

meven added inline comments.Mar 15 2019, 2:16 PM
src/panels/information/informationpanel.cpp
168–214

This means I should use Qmenu popup(parent) ?

meven updated this revision to Diff 53959.Mar 15 2019, 2:46 PM

Use the correct parent to instantiate QMenu.

meven marked 2 inline comments as done.Mar 15 2019, 2:47 PM
meven updated this revision to Diff 53963.Mar 15 2019, 3:45 PM

Fix the passing of the parent reference.

meven added a comment.Mar 16 2019, 7:56 AM

I realize the review could be easier to get into.
I can split the actual refactoring involving the TODO and the bug fix in two reviews if anyone would feel the need.

meven edited the summary of this revision. (Show Details)Mar 16 2019, 8:29 AM
meven updated this revision to Diff 54037.Mar 16 2019, 7:30 PM
  • Remove a useless added blank line
meven retitled this revision from Refactor the Information Panel, fixing bugs to Fix a todo in Information Panel, fixing two bugs.Mar 16 2019, 7:37 PM
elvisangelaccio requested changes to this revision.Mar 17 2019, 3:13 PM
elvisangelaccio added a subscriber: elvisangelaccio.

Can you please split this patch into two or more? One for the code refactoring and another one for each bug you are fixing, describing how to reproduce the issue and how we are going to fix it.

This revision now requires changes to proceed.Mar 17 2019, 3:13 PM
meven added a comment.Mar 17 2019, 4:30 PM

Can you please split this patch into two or more? One for the code refactoring and another one for each bug you are fixing, describing how to reproduce the issue and how we are going to fix it.

Sure.
First patch is at D19832
The other will depend on this one, so I will for this to go through before opening the bug fixes patchs

meven abandoned this revision.Mar 17 2019, 4:31 PM

Will be split, first patch at D19832