fix: setCurrentIndex after started

This commit is contained in:
QxQ 2020-10-01 23:50:41 +08:00
parent 5ba9fd6a3b
commit 7f0deef7a2
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
5947
5948

View File

@ -272,6 +272,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
if (!connections.empty())
{
const auto index = modelHelper->GetConnectionPairIndex({ connections.first(), groups.first() });
connectionTreeView->setCurrentIndex(index);
on_connectionTreeView_clicked(index);
}
}