author | llornkcor <llornkcor> | 2005-02-06 04:30:34 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-02-06 04:30:34 (UTC) |
commit | 60a856903eb688b56c61fa787ac26b6be9f6d6c4 (patch) (unidiff) | |
tree | 81848a11c6b006ed4b6ac5a036de8402dde8e25d | |
parent | e23dd592fc71aa22c449363231eac2f8ebd2a45b (diff) | |
download | opie-60a856903eb688b56c61fa787ac26b6be9f6d6c4.zip opie-60a856903eb688b56c61fa787ac26b6be9f6d6c4.tar.gz opie-60a856903eb688b56c61fa787ac26b6be9f6d6c4.tar.bz2 |
fix #1494 - download of file when search is canceled
-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 | |||
@@ -596,6 +596,9 @@ bool LibraryDialog::setTitle() | |||
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; |
@@ -603,7 +606,7 @@ bool LibraryDialog::setTitle() | |||
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 | } |
@@ -747,6 +750,8 @@ void LibraryDialog::onButtonSearch() | |||
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 | ||