@@ -644,11 +644,10 @@ void TombRaiderLinuxLauncher::workTick() {
644644 ui->progressBar ->setValue (value + 1 );
645645 qDebug () << ui->progressBar ->value () << " %" ;
646646 if (ui->progressBar ->value () >= 100 ) {
647- QModelIndex current = ui->listViewLevels ->currentIndex ();
648- if (current.isValid ()) {
649- qint64 id = levelListProxy->getLid (current);
650- levelListModel->setInstalled (current);
651- if (levelListProxy->getItemType (current)) {
647+ if (m_current.isValid ()) {
648+ qint64 id = levelListProxy->getLid (m_current);
649+ levelListModel->setInstalled (m_current);
650+ if (levelListProxy->getItemType (m_current)) {
652651 settings.setValue (
653652 QString (" installed/game%1" ).arg (id),
654653 " true" );
@@ -699,9 +698,8 @@ void TombRaiderLinuxLauncher::UpdateLevelDone() {
699698 ui->stackedWidget ->setCurrentWidget (
700699 ui->stackedWidget ->findChild <QWidget*>(" select" ));
701700 } else if (m_loadingDoneGoTo == " info" ) {
702- QModelIndex current = ui->listViewLevels ->currentIndex ();
703- if (current.isValid ()) {
704- qint64 id = levelListProxy->getLid (current);
701+ if (m_current.isValid ()) {
702+ qint64 id = levelListProxy->getLid (m_current);
705703 if (id != 0 ) {
706704 InfoData info = controller.getInfo (id);
707705 if (!(info.m_body == " " && info.m_imageList .size () == 0 )) {
0 commit comments