Restore selected row after retranslate

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-01-11 13:41:34 +02:00
parent 982a0172c5
commit c81724d42b

View File

@ -520,5 +520,13 @@ void DialogHistory::changeEvent(QEvent *event)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void DialogHistory::RetranslateUi() void DialogHistory::RetranslateUi()
{ {
qint32 currentRow = cursorRow;
UpdateHistory(); UpdateHistory();
QTableWidgetItem *item = ui->tableWidget->item(cursorRow, 0);
SCASSERT(item != nullptr);
item->setIcon(QIcon(""));
cursorRow = currentRow;
cellClicked(cursorRow, 0);
} }