Skip to content

Commit

Permalink
historyform was using wrong source
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Sep 30, 2015
1 parent c7d75fb commit 0e0eea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions huggle/historyform.cpp
Expand Up @@ -371,7 +371,7 @@ void HistoryForm::Display(int row, QString html, bool turtlemode)
return; return;
} }


int revid = this->ui->tableWidget->item(row, 4)->text().toInt(); int revid = this->ui->tableWidget->item(row, 5)->text().toInt();
previous_edit = this->CurrentEdit->Page->PageName; previous_edit = this->CurrentEdit->Page->PageName;
if (revid == 0) if (revid == 0)
return; return;
Expand Down Expand Up @@ -485,12 +485,12 @@ void Huggle::HistoryForm::on_tableWidget_itemSelectionChanged()
} }
else if (rows.count() > 1) else if (rows.count() > 1)
{ {
int max = this->ui->tableWidget->item(rows[0], 4)->text().toInt(); int max = this->ui->tableWidget->item(rows[0], 5)->text().toInt();
QString min; QString min;
int row_id = rows[rows.count() - 1]; int row_id = rows[rows.count() - 1];
if (this->ui->tableWidget->rowCount() > row_id + 1) if (this->ui->tableWidget->rowCount() > row_id + 1)
row_id++; row_id++;
min = this->ui->tableWidget->item(row_id, 4)->text(); min = this->ui->tableWidget->item(row_id, 5)->text();
if (!max) if (!max)
return; return;


Expand Down

0 comments on commit 0e0eea4

Please sign in to comment.