summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/recipes/querymainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xmlpatterns/recipes/querymainwindow.cpp')
-rw-r--r--examples/xmlpatterns/recipes/querymainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/xmlpatterns/recipes/querymainwindow.cpp b/examples/xmlpatterns/recipes/querymainwindow.cpp
index 95dc3b2..a3b9604 100644
--- a/examples/xmlpatterns/recipes/querymainwindow.cpp
+++ b/examples/xmlpatterns/recipes/querymainwindow.cpp
@@ -62,6 +62,8 @@ QueryMainWindow::QueryMainWindow() : ui_defaultQueries(0)
int len = queries.count();
for(int i = 0; i < len; ++i)
ui_defaultQueries->addItem(queries.at(i));
+ if (len > 0)
+ displayQuery(0);
}
//! [0]