From c81724d42b3ed57d78f8163db5056ff977fb6b3d Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Mon, 11 Jan 2016 13:41:34 +0200 Subject: [PATCH] Restore selected row after retranslate --HG-- branch : feature --- src/app/valentina/dialogs/dialoghistory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/valentina/dialogs/dialoghistory.cpp b/src/app/valentina/dialogs/dialoghistory.cpp index 4c06a28d2..f37847393 100644 --- a/src/app/valentina/dialogs/dialoghistory.cpp +++ b/src/app/valentina/dialogs/dialoghistory.cpp @@ -520,5 +520,13 @@ void DialogHistory::changeEvent(QEvent *event) //--------------------------------------------------------------------------------------------------------------------- void DialogHistory::RetranslateUi() { + qint32 currentRow = cursorRow; UpdateHistory(); + + QTableWidgetItem *item = ui->tableWidget->item(cursorRow, 0); + SCASSERT(item != nullptr); + item->setIcon(QIcon("")); + + cursorRow = currentRow; + cellClicked(cursorRow, 0); }