From 592904b2664c6fa3dbb4590b80a8552475995366 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Fri, 28 Feb 2003 17:32:26 +0000 Subject: fix bad manners --- (limited to 'core/apps/textedit/textedit.cpp') diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index b81f3b4..ce868d6 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -1182,7 +1182,11 @@ void TextEdit::gotoLine() { void TextEdit::doGoto() { QString number = gotoEdit->text(); gotoEdit->hide(); - if(gotoEdit) delete gotoEdit; + if(gotoEdit) { + delete gotoEdit; + gotoEdit = 0; + } + bool ok; int lineNumber = number.toInt(&ok, 10); if(editor->numLines() < lineNumber) -- cgit v0.9.0.2