From b19c2a813430ea8030dc66eb3343c727c2124db9 Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Sat, 14 Mar 2009 13:55:40 +0100 Subject: [PATCH] Don't send empty lines with KTextEdit Fixes #623. --- src/uisupport/inputline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index d7b18f47..3fe70c71 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -131,7 +131,8 @@ void InputLine::keyPressEvent(QKeyEvent * event) { //Since this is a ktextedit, we don't have this signal "natively" case Qt::Key_Return: event->accept(); - emit returnPressed(); + if(!text().isEmpty()) + emit returnPressed(); break; #endif -- 2.20.1