[Bug 60864] crashes after disabling File Groups part
Alexander Dymo
cloudtemple at mksat.net
Fri Jul 25 12:58:05 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=60864
cloudtemple at mksat.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From cloudtemple at mksat.net 2003-07-25 12:57 -------
Subject: kdevelop/parts/fileview
CVS commit by dymo:
Fixed crash after disabling File Groups part in the project options dialog
CCMAIL: 60864-done at 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;
};
More information about the KDevelop-devel
mailing list