-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 @@ -595,16 +595,19 @@ bool LibraryDialog::setTitle() if( strcmp( ramble, File_Name) == 0){ test = 1; } } + + if(test == 0 ) { + config.setGroup("Files"); config.writeEntry( "NumberOfFiles", i_numofFiles +1 ); QString interger; interger.setNum( i_numofFiles +1); config.writeEntry( interger, File_Name); config.setGroup( "Titles" ); config.writeEntry( File_Name, DlglistItemTitle); - + } test = 0; return true; } @@ -746,8 +749,10 @@ void LibraryDialog::onButtonSearch() texter = SearchResultsDialog->selText; // odebug << texter << oendl; resultLs= SearchResultsDialog->resultsList; i_berger = 1; + } else { + resultLs.clear(); } Searchlist.clear(); // if(SearchResultsDialog) |