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()) ||
|
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");
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user