diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2014-02-18 15:48:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-19 09:38:07 +0100 |
commit | 6eb9d1e37f2c316cdea441c838691fd5168a6919 (patch) | |
tree | 2b1ffe12afc17cd74c2e9fc5cbbef6722a1a3657 | |
parent | fdc58689c034ea92f335bf532060a4fb76188bf7 (diff) | |
download | qt4-tools-6eb9d1e37f2c316cdea441c838691fd5168a6919.tar.gz |
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 <oswald.buddenhagen@digia.com>
Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
-rw-r--r-- | tools/linguist/linguist/mainwindow.cpp | 2 |
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 { |