From 6eb9d1e37f2c316cdea441c838691fd5168a6919 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 18 Feb 2014 15:48:16 +0100 Subject: Ensure correct codec is used for Sources and Forms view. 6626e5f41712723405c110a4f11ad650116f7523 did it on the wrong line. This problem does not exist in Qt 5. Change-Id: Ia39bc69b3f5ad58d28994ef3cae00242a8d0adbb Reviewed-by: Oswald Buddenhagen Reviewed-by: Titta Heikkala --- tools/linguist/linguist/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/linguist/linguist/mainwindow.cpp b/tools/linguist/linguist/mainwindow.cpp index 285a4a2f87..e6ae92f853 100644 --- a/tools/linguist/linguist/mainwindow.cpp +++ b/tools/linguist/linguist/mainwindow.cpp @@ -1530,8 +1530,8 @@ void MainWindow::selectedMessageChanged(const QModelIndex &sortedIndex, const QM m_sourceAndFormView->setCurrentWidget(m_sourceCodeView); QDir dir = QFileInfo(m_dataModel->srcFileName(model)).dir(); QString fileName = QDir::cleanPath(dir.absoluteFilePath(m->fileName())); - m_sourceCodeView->setSourceContext(fileName, m->lineNumber()); m_sourceCodeView->setCodecName(m_dataModel->model(model)->codecName()); + m_sourceCodeView->setSourceContext(fileName, m->lineNumber()); } m_errorsView->setEnabled(true); } else { -- cgit v1.2.3