forked from qt-creator/qt-creator
fix crash dur to double deletion when text containing the debugger
location was removed from an editor
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user