summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 797c61b..5edf102 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -1176,3 +1176,4 @@ if(featureAutoSave)
void TextEdit::gotoLine() {
-
+ if( editor->length() < 1)
+ return;
QWidget *d = QApplication::desktop();
@@ -1189,2 +1190,3 @@ void TextEdit::doGoto() {
gotoEdit->hide();
+
if(gotoEdit) {
@@ -1196,3 +1198,3 @@ void TextEdit::doGoto() {
int lineNumber = number.toInt(&ok, 10);
- if(editor->numLines() < lineNumber)
+ if( editor->numLines() < lineNumber)
QMessageBox::message(tr("Text Edit"),tr("Not enough lines"));