fix crash dur to double deletion when text containing the debugger

location was removed from an editor
This commit is contained in:
hjk
2008-12-12 17:49:52 +01:00
parent c82263ac99
commit 27c4c1a7aa

View File

@@ -151,20 +151,18 @@ class Debugger::Internal::LocationMark
public: public:
LocationMark(const QString &fileName, int linenumber) LocationMark(const QString &fileName, int linenumber)
: BaseTextMark(fileName, linenumber) : BaseTextMark(fileName, linenumber)
{ {}
}
~LocationMark(); ~LocationMark();
QIcon icon() const; QIcon icon() const;
void updateLineNumber(int /*lineNumber*/) {} void updateLineNumber(int /*lineNumber*/) {}
void updateBlock(const QTextBlock & /*block*/) {} void updateBlock(const QTextBlock & /*block*/) {}
void removedFromEditor() { deleteLater(); } void removedFromEditor() {}
private:
}; };
LocationMark::~LocationMark() LocationMark::~LocationMark()
{ {
//qDebug() << "LOCATIONMARK DESTRUCTOR" << m_editor; //qDebug() << "LOCATIONMARK DESTRUCTOR";
} }
QIcon LocationMark::icon() const QIcon LocationMark::icon() const