diff options
author | corvid <corvid@lavabit.com> | 2011-05-27 19:50:33 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-05-27 19:50:33 +0000 |
commit | a7b232cd79762bd097ac527dbd60dd51d1f56b02 (patch) | |
tree | d0702ca9862a7cc04043e11ac01ec2b00353f62b /src | |
parent | 037c25162ba7a36e600f4e1366a206e4abf05020 (diff) |
move the disabling of prefs.limit_text_width
Diffstat (limited to 'src')
-rw-r--r-- | src/prefsparser.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/prefsparser.cc b/src/prefsparser.cc index 7d0582cd..9d245706 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -171,13 +171,6 @@ int PrefsParser::parseOption(char *name, char *value) MSG_WARN("prefs: {%s} IS recognized but not handled!\n", name); break; /* Not reached */ } - - if (prefs.limit_text_width) { - /* BUG: causes 100% CPU usage with <button> or <input type="image"> */ - MSG_WARN("Disabling limit_text_width preference (currently broken).\n"); - prefs.limit_text_width = FALSE; - } - return 0; } @@ -213,4 +206,11 @@ void PrefsParser::parse(FILE *fp) // restore the old numeric locale setlocale(LC_NUMERIC, oldLocale); dFree(oldLocale); + + + if (prefs.limit_text_width) { + /* BUG: causes 100% CPU usage with <button> or <input type="image"> */ + MSG_WARN("Disabling limit_text_width preference (currently broken).\n"); + prefs.limit_text_width = FALSE; + } } |