diff --git a/uefitool.cpp b/uefitool.cpp index a79d587..7fcdaf1 100644 --- a/uefitool.cpp +++ b/uefitool.cpp @@ -17,7 +17,7 @@ UEFITool::UEFITool(QWidget *parent) : QMainWindow(parent), ui(new Ui::UEFITool), -version(tr("0.19.1")) +version(tr("0.19.1.1")) { clipboard = QApplication::clipboard(); @@ -631,7 +631,7 @@ void UEFITool::scrollTreeView(QListWidgetItem* item) MessageListItem* messageItem = static_cast(item); QModelIndex index = messageItem->index(); if (index.isValid()) { - ui->structureTreeView->scrollTo(index); + ui->structureTreeView->scrollTo(index, QAbstractItemView::PositionAtCenter); ui->structureTreeView->selectionModel()->clearSelection(); ui->structureTreeView->selectionModel()->select(index, QItemSelectionModel::Select); }