summaryrefslogtreecommitdiff
path: root/src/frontend/searchdialog/csearchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/searchdialog/csearchdialog.cpp')
-rw-r--r--src/frontend/searchdialog/csearchdialog.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/frontend/searchdialog/csearchdialog.cpp b/src/frontend/searchdialog/csearchdialog.cpp
index 8442c61..6f8214c 100644
--- a/src/frontend/searchdialog/csearchdialog.cpp
+++ b/src/frontend/searchdialog/csearchdialog.cpp
@@ -63,10 +63,9 @@ void CSearchDialog::openDialog(const QList<CSwordModuleInfo*> modules, const QSt
m_staticDialog->activateWindow();
}
-void CSearchDialog::closeDialog()
-{
- if (m_staticDialog != 0)
- m_staticDialog->closeButtonClicked();
+void CSearchDialog::closeDialog() {
+ if (m_staticDialog != 0)
+ m_staticDialog->closeButtonClicked();
}
CSearchDialog* CSearchDialog::getSearchDialog() {
@@ -99,11 +98,11 @@ void CSearchDialog::startSearch() {
// first check the search string for errors
{
- QString TestString(originalSearchText);
- QRegExp ReservedWords("heading:|footnote:|morph:|strong:");
- if (TestString.replace(ReservedWords, "").simplified().isEmpty()) {
- return;
- }
+ QString TestString(originalSearchText);
+ QRegExp ReservedWords("heading:|footnote:|morph:|strong:");
+ if (TestString.replace(ReservedWords, "").simplified().isEmpty()) {
+ return;
+ }
}
searchText = prepareSearchText(originalSearchText);