Summary: | crashes after disabling File Groups part | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | John Firebaugh <jfirebaugh> |
Component: | file groups | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
John Firebaugh
2003-07-07 05:55:54 UTC
Subject: kdevelop/parts/fileview CVS commit by dymo: Fixed crash after disabling File Groups part in the project options dialog CCMAIL: 60864-done@bugs.kde.org M +5 -1 filegroupspart.cpp 1.7 M +1 -0 filegroupspart.h 1.2 --- kdevelop/parts/fileview/filegroupspart.cpp #1.6:1.7 @@ -35,4 +35,5 @@ FileGroupsPart::FileGroupsPart(QObject * : KDevPlugin("FileGroups", "filegroups", parent, name ? name : "FileGroupsPart") { + deleteRequested = false; setInstance(FileGroupsFactory::instance()); @@ -62,4 +63,5 @@ FileGroupsPart::FileGroupsPart(QObject * FileGroupsPart::~FileGroupsPart() { + deleteRequested = true; if (m_filegroups) mainWindow()->removeView(m_filegroups); @@ -69,4 +71,6 @@ FileGroupsPart::~FileGroupsPart() void FileGroupsPart::refresh() { + if (deleteRequested) + return; // This method may be called from m_filetree's slot, // so we make sure not to modify the list view during --- kdevelop/parts/fileview/filegroupspart.h #1.1:1.2 @@ -35,4 +35,5 @@ private slots: private: QGuardedPtr<FileGroupsWidget> m_filegroups; + bool deleteRequested; }; |