Skip to content

Commit da724c3

Browse files
committed
kconfig: qconf: move conf_read() before drawing tree pain
The constructor of ConfigMainWindow() calls show*View(), which needs to calculate symbol values. conf_read() must be called before that. Fixes: 060e05c ("kconfig: qconf: remove initial call to conf_changed()") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 8d09554 commit da724c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/kconfig/qconf.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,8 @@ ConfigMainWindow::ConfigMainWindow(void)
15051505
connect(helpText, &ConfigInfoView::menuSelected,
15061506
this, &ConfigMainWindow::setMenuLink);
15071507

1508+
conf_read(NULL);
1509+
15081510
QString listMode = configSettings->value("/listMode", "symbol").toString();
15091511
if (listMode == "single")
15101512
showSingleView();
@@ -1906,8 +1908,6 @@ int main(int ac, char** av)
19061908
configApp->connect(configApp, SIGNAL(lastWindowClosed()), SLOT(quit()));
19071909
configApp->connect(configApp, SIGNAL(aboutToQuit()), v, SLOT(saveSettings()));
19081910

1909-
conf_read(NULL);
1910-
19111911
v->show();
19121912
configApp->exec();
19131913

0 commit comments

Comments
 (0)