summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-02-28 18:13:41 (UTC)
committer llornkcor <llornkcor>2003-02-28 18:13:41 (UTC)
commit64423f1852a13178f23365f2bba995ef2c355b3b (patch) (unidiff)
tree074d12cbd3b762fbcd0eac686c5b7fab3617453d
parentd4db61dbd748040bed740e08a839e01b86af2c87 (diff)
downloadopie-64423f1852a13178f23365f2bba995ef2c355b3b.zip
opie-64423f1852a13178f23365f2bba995ef2c355b3b.tar.gz
opie-64423f1852a13178f23365f2bba995ef2c355b3b.tar.bz2
no goto for 0 length texts
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)
1176void TextEdit::gotoLine() { 1176void TextEdit::gotoLine() {
1177 1177 if( editor->length() < 1)
1178 return;
1178 QWidget *d = QApplication::desktop(); 1179 QWidget *d = QApplication::desktop();
@@ -1189,2 +1190,3 @@ void TextEdit::doGoto() {
1189 gotoEdit->hide(); 1190 gotoEdit->hide();
1191
1190 if(gotoEdit) { 1192 if(gotoEdit) {
@@ -1196,3 +1198,3 @@ void TextEdit::doGoto() {
1196 int lineNumber = number.toInt(&ok, 10); 1198 int lineNumber = number.toInt(&ok, 10);
1197 if(editor->numLines() < lineNumber) 1199 if( editor->numLines() < lineNumber)
1198 QMessageBox::message(tr("Text Edit"),tr("Not enough lines")); 1200 QMessageBox::message(tr("Text Edit"),tr("Not enough lines"));