projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f2694
)
Fixing BR #167 (Key down now puts the content of inputline into the history (doing...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sun, 22 Jun 2008 14:31:32 +0000
(16:31 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 23 Jun 2008 11:12:11 +0000
(13:12 +0200)
src/uisupport/inputline.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
31ec399
..
6ea156a
100644
(file)
--- a/
src/uisupport/inputline.cpp
+++ b/
src/uisupport/inputline.cpp
@@
-41,7
+41,11
@@
void InputLine::keyPressEvent(QKeyEvent * event) {
} else if(event->key() == Qt::Key_Down) {
if(idx < history.count()) idx++;
if(idx < history.count()) setText(history[idx]);
- else setText("");
+ else if(!text().isEmpty()) {
+ history << text();
+ idx = history.count();
+ setText("");
+ }
event->accept();
} else if(event->key() == Qt::Key_Select) { // for Qtopia
emit returnPressed();