summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-08-31 23:09:56 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-08-31 23:09:56 +0200
commit4c944085d62e566fd3c99b053907d8d8b08790b8 (patch)
tree1265dfb218794902ac085998127bb315b15c7976 /src/settings.cpp
parentf1625c920ae900466b84bf1ca36cf3a5f5979aef (diff)
menu: generalize filtering, introduce interfaces
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 1445d956..2c6d95e5 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -392,7 +392,7 @@ void Configuration::SetDefaults()
playlist_disable_highlight_delay = 5;
message_delay_time = 4;
lyrics_db = 0;
- regex_type = 0;
+ regex_type = REG_ICASE;
lines_scrolled = 2;
search_engine_default_search_mode = 0;
visualizer_sync_interval = 30;
@@ -953,7 +953,8 @@ void Configuration::Read()
}
else if (name == "regular_expressions")
{
- regex_type = REG_EXTENDED * (v != "basic");
+ if (v != "basic")
+ regex_type |= REG_EXTENDED;
}
else if (name == "lines_scrolled")
{