History

xconfig: Fix the filename for GUI settings

Currently the qconf program invoked by 'make xconfig' stores GUI settings in the file ~/.config/Unknown\ Organization.conf. This name is apparently generated by the QSettings class when no organisation or application name are specified. This is obviously not a sensible filename (nor does it seem sensible that these QSettings parameters are optional!). Pass the names 'kernel.org' and 'qconf', resuling in the filename ~/.config/kernel.org/qconf.conf.

Ben Hutchings committed 13 years ago

Commit 00d4f8f1 parent 503c8232 files · +6 −0Browse files

Unified · Split

2 files
  1. scripts/kconfig/qconf.cc +5 −0
  2. scripts/kconfig/qconf.h +1 −0
scripts/kconfig/qconf.cc+5−0
@@ -69,6 +69,11 @@ static inline QString qgettext(const QString& str) · 68 unmodified lines
6969 return QString::fromLocal8Bit(gettext(str.latin1()));
7070 }
7171
72+ConfigSettings::ConfigSettings()
73+ : QSettings("kernel.org", "qconf")
74+{
75+}
76+
7277 /**
7378 * Reads a list of integer values from the application settings.
7479 */
scripts/kconfig/qconf.h+1−0
@@ -32,6 +32,7 @@ class ConfigMainWindow; · 31 unmodified lines
3232
3333 class ConfigSettings : public QSettings {
3434 public:
35+ ConfigSettings();
3536 Q3ValueList<int> readSizes(const QString& key, bool *ok);
3637 bool writeSizes(const QString& key, const Q3ValueList<int>& value);
3738 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t