~ubuntu-branches/ubuntu/quantal/konsole/quantal

« back to all changes in this revision

Viewing changes to src/SessionController.cpp

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2012-09-10 18:35:48 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120910183548-zpksmy5m0luia7wg
Tags: 4:4.9.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1004
1004
    if (showSearchBar) {
1005
1005
        connect(_searchBar, SIGNAL(searchChanged(QString)), this,
1006
1006
                SLOT(searchTextChanged(QString)));
 
1007
        connect(_searchBar, SIGNAL(searchReturnPressed(QString)), this,
 
1008
                SLOT(searchTextChanged(QString)));
 
1009
        connect(_searchBar, SIGNAL(searchShiftPlusReturnPressed()), this,
 
1010
                SLOT(findPreviousInHistory()));
 
1011
        _searchBar->clearLineEdit();
1007
1012
    } else {
1008
1013
        disconnect(_searchBar, SIGNAL(searchChanged(QString)), this,
1009
 
                SLOT(searchTextChanged(QString)));
 
1014
                   SLOT(searchTextChanged(QString)));
 
1015
        disconnect(_searchBar, SIGNAL(searchReturnPressed(QString)), this,
 
1016
                   SLOT(searchTextChanged(QString)));
 
1017
        disconnect(_searchBar, SIGNAL(searchShiftPlusReturnPressed()), this,
 
1018
                   SLOT(findPreviousInHistory()));
1010
1019
    }
1011
1020
}
1012
1021
 
1087
1096
        task->addScreenWindow(_session , _view->screenWindow());
1088
1097
        task->execute();
1089
1098
    }
 
1099
    else if (text.isEmpty()) {
 
1100
        searchCompleted(false);
 
1101
    }
1090
1102
 
1091
1103
    _view->processFilters();
1092
1104
}