| Summary: | Case sensistive search option gets reset | ||
|---|---|---|---|
| Product: | [Unmaintained] kpdf | Reporter: | James Shaw <js102> |
| Component: | general | Assignee: | Albert Astals Cid <aacid> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.5.6 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
James Shaw
2007-08-24 12:57:40 UTC
Well, more than "reset", that option is not saved... :) SVN commit 704964 by pino:
Save the case sensitivity of a search across multiple search sessions each time a document is open.
BUG: 149164
M +7 -1 part.cpp
--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #704963:704964
@@ -768,6 +768,7 @@
void Part::slotFind()
{
+ static bool savedCaseSensitive = false;
KFindDialog dlg( widget() );
dlg.setHasCursor( false );
if ( !m_searchHistory.empty() )
@@ -777,12 +778,17 @@
dlg.setSupportsWholeWordsFind( false );
dlg.setSupportsRegularExpressionFind( false );
#endif
+ if ( savedCaseSensitive )
+ {
+ dlg.setOptions( dlg.options() | KFindDialog::CaseSensitive );
+ }
if ( dlg.exec() == QDialog::Accepted )
{
+ savedCaseSensitive = dlg.options() & KFindDialog::CaseSensitive;
m_searchHistory = dlg.findHistory();
m_searchStarted = true;
m_document->resetSearch( PART_SEARCH_ID );
- m_document->searchText( PART_SEARCH_ID, dlg.pattern(), false, dlg.options() & KFindDialog::CaseSensitive,
+ m_document->searchText( PART_SEARCH_ID, dlg.pattern(), false, savedCaseSensitive,
KPDFDocument::NextMatch, true, qRgb( 255, 255, 64 ) );
}
}
|