From f9071c327c770b658bbe2865a8b28237dd2459c6 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Jesper=20Thomsch=C3=BCtz?= Date: Sat, 14 Mar 2009 21:23:22 +0200 Subject: [PATCH] Don't try to send empty text --- src/uisupport/inputline.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 2615688..17cf805 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -167,6 +167,9 @@ bool InputLine::addToHistory(const QString &text, bool temporary) { } void InputLine::on_returnPressed() { + if (text().isEmpty()) + return; + addToHistory(text()); emit sendText(text()); resetLine(); -- 1.5.6.3