Restore selected row after retranslate
--HG-- branch : feature
This commit is contained in:
parent
982a0172c5
commit
c81724d42b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user