summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/linguist/linguist/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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 {