Windows: conversion of prefs from registry to .ini
This commit is contained in:
parent
45b785b728
commit
6885d1414b
@ -70,6 +70,8 @@ PrefsPack prefs;
|
|||||||
* the qt/recoll settings to defaults) */
|
* the qt/recoll settings to defaults) */
|
||||||
static bool havereadsettings;
|
static bool havereadsettings;
|
||||||
|
|
||||||
|
static void maybeCopyFromRegistry();
|
||||||
|
|
||||||
void rwSettings(bool writing)
|
void rwSettings(bool writing)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -78,10 +80,12 @@ void rwSettings(bool writing)
|
|||||||
// Once conversion registry -> file. Only happens once ever, and
|
// Once conversion registry -> file. Only happens once ever, and
|
||||||
// also we only call the function at program startup (the once
|
// also we only call the function at program startup (the once
|
||||||
// above).
|
// above).
|
||||||
maybeCopyFromRegistry();
|
if (once) {
|
||||||
once = 0;
|
maybeCopyFromRegistry();
|
||||||
|
once = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif _WIN32
|
#endif /*_WIN32*/
|
||||||
// Keep this AFTER maybecopy...()
|
// Keep this AFTER maybecopy...()
|
||||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user