projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
faffcce
)
really don't..
author
Sebastian Goth
<seezer@roath.org>
Sat, 14 Mar 2009 22:43:23 +0000
(23:43 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 14 Mar 2009 22:57:13 +0000
(23:57 +0100)
src/uisupport/inputline.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
3fe70c7
..
c04a3f2
100644
(file)
--- a/
src/uisupport/inputline.cpp
+++ b/
src/uisupport/inputline.cpp
@@
-135,6
+135,12
@@
void InputLine::keyPressEvent(QKeyEvent * event) {
emit returnPressed();
break;
emit returnPressed();
break;
+ case Qt::Key_Enter:
+ event->accept();
+ if(!text().isEmpty())
+ emit returnPressed();
+ break;
+
#endif
default:
#endif
default:
@@
-214,9
+220,11
@@
void InputLine::on_textChanged(QString newText) {
}
foreach(QString line, lines) {
}
foreach(QString line, lines) {
- clear();
- insert(line);
- emit returnPressed();
+ if(!line.isEmpty()) {
+ clear();
+ insert(line);
+ emit returnPressed();
+ }
}
// if(newText.contains(lineSep)) {
// clear();
}
// if(newText.contains(lineSep)) {
// clear();