Summary: | Konqueror crashes when viewing 2 pdf files in different tabs | ||
---|---|---|---|
Product: | [Applications] kpdf | Reporter: | Dan <DanMoinescu> |
Component: | general | Assignee: | Christophe Devriese <oelewapperke> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | fhidalgosola |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Dan
2004-05-12 19:26:08 UTC
*** Bug 80622 has been marked as a duplicate of this bug. *** CVS commit by aacid: globalParam is only one variable, so we can't delete it when there are two instances of the part running. That fixes bug 81442 CCMAIL:81442-done@bugs.kde.org M +6 -1 kpdf_part.cpp 1.58 M +2 -0 kpdf_part.h 1.27 --- kdegraphics/kpdf/kpdf/kpdf_part.cpp #1.57:1.58 @@ -37,4 +37,6 @@ K_EXPORT_COMPONENT_FACTORY(libkpdfpart, using namespace KPDF; +unsigned int Part::m_count = 0; + Part::Part(QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, @@ -145,10 +147,13 @@ Part::Part(QWidget *parentWidget, const readSettings(); updateActionPage(); + m_count++; } Part::~Part() { - delete globalParams; + m_count--; + if (m_count == 0) delete globalParams; writeSettings(); + delete m_doc; } --- kdegraphics/kpdf/kpdf/kpdf_part.h #1.26:1.27 @@ -136,4 +136,6 @@ namespace KPDF int m_nextThumbnail; + static unsigned int m_count; + private slots: void slotFitToWidthToggled(); |