~ubuntu-branches/ubuntu/raring/quassel/raring-proposed

« back to all changes in this revision

Viewing changes to src/uisupport/inputline.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2008-06-27 19:21:30 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080627192130-kjsrutd8w40x5okn
Tags: upstream-0.2.0~rc1
ImportĀ upstreamĀ versionĀ 0.2.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  } else if(event->key() == Qt::Key_Down) {
42
42
    if(idx < history.count()) idx++;
43
43
    if(idx < history.count()) setText(history[idx]);
44
 
    else setText("");
 
44
    else if(!text().isEmpty()) {
 
45
      history << text();
 
46
      idx = history.count();
 
47
      setText("");
 
48
    }
45
49
    event->accept();
46
50
  } else if(event->key() == Qt::Key_Select) {  // for Qtopia
47
51
    emit returnPressed();