File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ QAction *ConfigMainWindow::saveAction;
37
37
ConfigSettings::ConfigSettings ()
38
38
: QSettings(" kernel.org" , " qconf" )
39
39
{
40
+ beginGroup (" /kconfig/qconf" );
41
+ }
42
+
43
+ ConfigSettings::~ConfigSettings ()
44
+ {
45
+ endGroup ();
40
46
}
41
47
42
48
/* *
@@ -1829,15 +1835,13 @@ int main(int ac, char** av)
1829
1835
configApp = new QApplication (ac, av);
1830
1836
1831
1837
configSettings = new ConfigSettings ();
1832
- configSettings->beginGroup (" /kconfig/qconf" );
1833
1838
v = new ConfigMainWindow ();
1834
1839
1835
1840
// zconfdump(stdout);
1836
1841
1837
1842
v->show ();
1838
1843
configApp->exec ();
1839
1844
1840
- configSettings->endGroup ();
1841
1845
delete configSettings;
1842
1846
delete v;
1843
1847
delete configApp;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class ConfigMainWindow;
24
24
class ConfigSettings : public QSettings {
25
25
public:
26
26
ConfigSettings ();
27
+ ~ConfigSettings (void );
27
28
QList<int > readSizes (const QString& key, bool *ok);
28
29
bool writeSizes (const QString& key, const QList<int >& value);
29
30
};
You can’t perform that action at this time.
0 commit comments