mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
QtCurve disable reading of config files
This commit is contained in:
parent
d7a2bbb2cf
commit
b37a8caeb7
@ -976,6 +976,7 @@ class QtCConfig
|
||||
|
||||
QtCConfig::QtCConfig(const QString &filename)
|
||||
{
|
||||
if (filename.isEmpty()) return; // Changed by Kovid to ensure config files are never read
|
||||
QFile f(filename);
|
||||
|
||||
#if QT_VERSION >= 0x040000
|
||||
@ -1748,17 +1749,13 @@ bool qtcReadConfig(const char *file, Options *opts, Options *defOpts)
|
||||
#endif
|
||||
else
|
||||
{
|
||||
// Changed by Kovid to ensure config files are never read
|
||||
#ifdef __cplusplus
|
||||
QtCConfig cfg(file);
|
||||
|
||||
if(cfg.ok())
|
||||
{
|
||||
QtCConfig cfg(QString(""));
|
||||
#else
|
||||
GHashTable *cfg=loadConfig(file);
|
||||
|
||||
if(cfg)
|
||||
{
|
||||
GHashTable *cfg=NULL;
|
||||
#endif
|
||||
if (0) {
|
||||
int i;
|
||||
|
||||
opts->version=readVersionEntry(cfg, VERSION_KEY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user