Package: ark / 4:4.14.2-2+deb8u1

Metadata

Package Version Patches format
ark 4:4.14.2-2+deb8u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
use_libarchive_for_zip_files | (download)

plugins/clizipplugin/CMakeLists.txt | 2 1 + 1 - 0 !
plugins/libarchive/CMakeLists.txt | 2 1 + 1 - 0 !
plugins/libarchive/libarchivehandler.cpp | 259 150 + 109 - 0 !
3 files changed, 152 insertions(+), 111 deletions(-)

---
upstream_remove_part_from_KXMLGUIFactory_on_exit | (download)

part/part.cpp | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

---
Stop crashing on exit when being used solely as a KPart.patch | (download)

app/mainwindow.cpp | 3 3 + 0 - 0 !
part/part.cpp | 3 0 + 3 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

 stop crashing on exit when being used solely as a kpart.

This change fixes a crash introduced by commit 3b981ca ("Remove Part
from KXMLGUIFactory on exit").

Part::~Part() is the wrong place to call KXMLGUIFactory::removeClient(),
as it assumes addClient() had been called in the first place.

This is only true if Ark is called as a standalone program, since that
is done in MainWindow::loadPart()'s call to KXMLGuiWindow::createGUI().

Conversely, if the Ark KPart is being used as an embedded viewer in,
say, Konqueror or to preview an archive inside an archive (ie. Ark
inside Ark) that does not hold true and we try to access a
KXMLGUIFactory that does not exist.

Instead, call KXMLGuiWindow::removeClient() in MainWindow's destructor,
since in this case we are certain that addClient() was been called
before.

CCBUG:      341187

(cherry picked from commit 9c30f30b38c36a31e6fcb3aa047a0247ac5a22fb)
This was committed for completeness, as there will be no additional
releases from the KDE/4.14 branch.

Conflicts:
	part/part.cpp