ensure reslist parformat is refreshed after edit (1.11 bug)
This commit is contained in:
parent
7cf12ddcdf
commit
6e21f5868c
@ -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");
|
||||
|
||||
@ -67,6 +67,7 @@ class PrefsPack {
|
||||
int reslistfontsize;
|
||||
// Result list format string
|
||||
QString reslistformat;
|
||||
string creslistformat;
|
||||
QString queryStemLang;
|
||||
int mainwidth;
|
||||
int mainheight;
|
||||
|
||||
@ -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()
|
||||
{
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user