Skip to content

Commit f9a825a

Browse files
committed
kconfig: qconf: create QApplication after option checks
'scripts/kconfig/qconf -h' just calls usage() and exits, with QApplication unused. There is no need to construct QApplication so early. Do it after the parse stage. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: Randy Dunlap <rdunlap@infradead.org>
1 parent a0fce28 commit f9a825a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/kconfig/qconf.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,6 @@ int main(int ac, char** av)
18511851
const char *name;
18521852

18531853
progname = av[0];
1854-
configApp = new QApplication(ac, av);
18551854
if (ac > 1 && av[1][0] == '-') {
18561855
switch (av[1][1]) {
18571856
case 's':
@@ -1872,6 +1871,8 @@ int main(int ac, char** av)
18721871
conf_read(NULL);
18731872
//zconfdump(stdout);
18741873

1874+
configApp = new QApplication(ac, av);
1875+
18751876
configSettings = new ConfigSettings();
18761877
configSettings->beginGroup("/kconfig/qconf");
18771878
v = new ConfigMainWindow();

0 commit comments

Comments
 (0)