ensure reslist parformat is refreshed after edit (1.11 bug)

This commit is contained in:
dockes 2009-01-15 09:45:38 +00:00
parent 7cf12ddcdf
commit 6e21f5868c
4 changed files with 4 additions and 4 deletions

View File

@ -193,6 +193,7 @@ void rwSettings(bool writing)
QString::fromAscii(prefs.getV18DfltResListFormat()) ||
prefs.reslistformat.stripWhiteSpace().isEmpty())
prefs.reslistformat = rlfDflt;
prefs.creslistformat = (const char*)prefs.reslistformat.utf8();
SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", ,
"english");

View File

@ -67,6 +67,7 @@ class PrefsPack {
int reslistfontsize;
// Result list format string
QString reslistformat;
string creslistformat;
QString queryStemLang;
int mainwidth;
int mainheight;

View File

@ -380,10 +380,7 @@ string QtGuiResListPager::detailsLink()
}
const string& QtGuiResListPager::parFormat()
{
static string parformat;
if (parformat.empty())
parformat = (const char*)prefs.reslistformat.utf8();
return parformat;
return prefs.creslistformat;
}
string QtGuiResListPager::nextUrl()
{

View File

@ -192,6 +192,7 @@ void UIPrefsDialog::accept()
prefs.reslistformat = prefs.getDfltResListFormat();
rlfTE->setText(prefs.reslistformat);
}
prefs.creslistformat = (const char*)prefs.reslistformat.utf8();
prefs.htmlBrowser = helpBrowserLE->text();