Diffstat (limited to 'noncore/apps/opie-gutenbrowser/LibraryDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/LibraryDialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp index 3c096ed..7426e80 100644 --- a/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.cpp | |||
@@ -593,20 +593,23 @@ bool LibraryDialog::setTitle() | |||
593 | temp.setNum( i); | 593 | temp.setNum( i); |
594 | ramble = config.readEntry( temp, "" ); | 594 | ramble = config.readEntry( temp, "" ); |
595 | if( strcmp( ramble, File_Name) == 0){ | 595 | if( strcmp( ramble, File_Name) == 0){ |
596 | test = 1; | 596 | test = 1; |
597 | } | 597 | } |
598 | } | 598 | } |
599 | |||
600 | if(test == 0 ) { | ||
601 | |||
599 | config.setGroup("Files"); | 602 | config.setGroup("Files"); |
600 | config.writeEntry( "NumberOfFiles", i_numofFiles +1 ); | 603 | config.writeEntry( "NumberOfFiles", i_numofFiles +1 ); |
601 | QString interger; | 604 | QString interger; |
602 | interger.setNum( i_numofFiles +1); | 605 | interger.setNum( i_numofFiles +1); |
603 | config.writeEntry( interger, File_Name); | 606 | config.writeEntry( interger, File_Name); |
604 | config.setGroup( "Titles" ); | 607 | config.setGroup( "Titles" ); |
605 | config.writeEntry( File_Name, DlglistItemTitle); | 608 | config.writeEntry( File_Name, DlglistItemTitle); |
606 | 609 | } | |
607 | test = 0; | 610 | test = 0; |
608 | return true; | 611 | return true; |
609 | } | 612 | } |
610 | 613 | ||
611 | 614 | ||
612 | void LibraryDialog::saveConfig() | 615 | void LibraryDialog::saveConfig() |
@@ -744,12 +747,14 @@ void LibraryDialog::onButtonSearch() | |||
744 | SearchResultsDialog->showMaximized(); | 747 | SearchResultsDialog->showMaximized(); |
745 | if( SearchResultsDialog->exec() != 0) { | 748 | if( SearchResultsDialog->exec() != 0) { |
746 | texter = SearchResultsDialog->selText; | 749 | texter = SearchResultsDialog->selText; |
747 | // odebug << texter << oendl; | 750 | // odebug << texter << oendl; |
748 | resultLs= SearchResultsDialog->resultsList; | 751 | resultLs= SearchResultsDialog->resultsList; |
749 | i_berger = 1; | 752 | i_berger = 1; |
753 | } else { | ||
754 | resultLs.clear(); | ||
750 | } | 755 | } |
751 | Searchlist.clear(); | 756 | Searchlist.clear(); |
752 | 757 | ||
753 | // if(SearchResultsDialog) | 758 | // if(SearchResultsDialog) |
754 | // delete SearchResultsDialog; | 759 | // delete SearchResultsDialog; |
755 | QString tester; | 760 | QString tester; |