Connect to backend signals to catch cache reload.

Review Request #127107 - Created Feb. 18, 2016 and submitted

Information
Carlo Vanini
muon
master
332530
127080
7660dc9...
Reviewers
kubuntu, muon

When the cache is reloaded libqapt deletes Package objects and creates them anew. This results in dangling pointers in muon models.

When "Preview Changes" is shown we have two models with lists of packages, and both should be cleared and repopulated.

The cache reload can be triggered by pinning/unpinning (lock/unlock) a package.

  • mark a package for install/remove
  • click on "Preview Changes"
  • right-click on a package and select "Lock at Current Version"

Without patch: clicking on "Back" crashes muon
With patch: no crash, but as a side effect all changes to packages are lost when the cache is reloaded.

Issues

  • 0
  • 1
  • 1
  • 2
Description From Last Updated
Aleix Pol Gonzalez
Carlo Vanini
Aleix Pol Gonzalez
Carlo Vanini
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit a437d39e43112a3e61ebafadd4e3a06b9bd91437 by Carlo Vanini to branch master.
Loading...