diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-08-26 18:55:02 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-27 14:07:58 +0200 |
commit | 62fea90944998ba7eb22e42973f3edcfa4325b30 (patch) | |
tree | c22a5ca372188993e4735282df1cea0ee2825d40 | |
parent | 0e6fa6d50133160ce8ba30bf38243b5d3bbc46da (diff) | |
download | qttools-62fea90944998ba7eb22e42973f3edcfa4325b30.tar.gz |
don't disable error view just because of lacking location info
amends 94584dcdd
Change-Id: I5fe662a54e140a25894975dbefc74b221b16d3d8
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r-- | src/linguist/linguist/mainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index 4ffe22113..85d0cbf58 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -1507,12 +1507,11 @@ void MainWindow::selectedMessageChanged(const QModelIndex &sortedIndex, const QM QString fileName = QDir::cleanPath(dir.absoluteFilePath(m->fileName())); m_sourceCodeView->setSourceContext(fileName, m->lineNumber()); } - m_errorsView->setEnabled(true); } else { m_sourceAndFormView->setCurrentWidget(m_sourceCodeView); m_sourceCodeView->setSourceContext(QString(), 0); - m_errorsView->setEnabled(false); } + m_errorsView->setEnabled(m != 0); updateDanger(m_currentIndex, true); } else { m_currentIndex = MultiDataIndex(); |