summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/networkpkgmgr.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp
index 78d3df5..a058285 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.cpp
+++ b/noncore/settings/aqpkg/networkpkgmgr.cpp
@@ -677,9 +677,13 @@ void NetworkPackageManager :: letterPushed( QString t )
677 677
678void NetworkPackageManager :: searchForPackage() 678void NetworkPackageManager :: searchForPackage( bool findNext )
679{ 679{
680 bool ok = FALSE; 680 bool ok = false;
681 QString searchText = InputDialog::getText( "Search for package", "Enter package to search for", QString::null, &ok, this ).lower(); 681 if ( !findNext || lastSearchText.isEmpty() )
682 if ( ok && !searchText.isEmpty() ) 682 lastSearchText = InputDialog::getText( "Search for package", "Enter package to search for", lastSearchText, &ok, this ).lower();
683 else
684 ok = true;
685
686 if ( ok && !lastSearchText.isEmpty() )
683 { 687 {
684 cout << "searching for " << searchText << endl; 688 cout << "searching for " << lastSearchText << endl;
685 // look through package list for text startng at current position 689 // look through package list for text startng at current position
@@ -697,3 +701,3 @@ void NetworkPackageManager :: searchForPackage()
697 cout << "checking " << item->text().lower() << endl; 701 cout << "checking " << item->text().lower() << endl;
698 if ( item->text().lower().find( searchText ) != -1 ) 702 if ( item->text().lower().find( lastSearchText ) != -1 )
699 { 703 {