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()) || QString::fromAscii(prefs.getV18DfltResListFormat()) ||
prefs.reslistformat.stripWhiteSpace().isEmpty()) prefs.reslistformat.stripWhiteSpace().isEmpty())
prefs.reslistformat = rlfDflt; prefs.reslistformat = rlfDflt;
prefs.creslistformat = (const char*)prefs.reslistformat.utf8();
SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", , SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", ,
"english"); "english");

View File

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

View File

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

View File

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