src/RelpipeChartMainWindow.cpp
branchv_0
changeset 14 0a6a88e4e48f
parent 13 c84042d014c9
child 15 547a7c5681a5
--- a/src/RelpipeChartMainWindow.cpp	Sat Sep 29 00:43:16 2018 +0200
+++ b/src/RelpipeChartMainWindow.cpp	Sat Sep 29 12:48:16 2018 +0200
@@ -44,6 +44,7 @@
 	splitter->addWidget(new QPushButton("here will be the chart", splitter));
 	splitter->addWidget(new QPushButton("here will be the table", splitter));
 	tabs->addTab(splitter, QString::fromWCharArray(name.c_str()));
+	if (tabs->count() == 2) tabs->setCurrentIndex(1); // switch to the first relation (first tab is Options tab)
 }
 
 void RelpipeChartMainWindow::attribute(const string_t& value) {