Permalink
Browse files

Stuff

  • Loading branch information...
1 parent 64ad5db commit 368fc68d7f4b6db062146543b9f24e1c7c5a68d2 @bmcdorman bmcdorman committed Sep 1, 2012
Showing with 8 additions and 4 deletions.
  1. +1 −1 src/SourceFile.cpp
  2. +7 −3 src/widgets/ErrorWidget.cpp
View
@@ -816,7 +816,7 @@ void SourceFile::availableFinished(bool avail)
void SourceFile::compileFinished(CompileResult result)
{
- qDebug() << "Compile finished";
+ qDebug() << "Compile finished with " << result.raw();
updateErrors(result);
mainWindow()->setStatusMessage(tr("Compile ") + (result.success() ? tr("Succeeded") : tr("Failed")));
mainWindow()->setErrors(topLevelUnit(), result);
@@ -3,7 +3,8 @@
#include <QListWidget>
#include <QDebug>
-ErrorWidget::ErrorWidget(QWidget* parent) : QWidget(parent), m_unit(0)
+ErrorWidget::ErrorWidget(QWidget* parent)
+ : QWidget(parent), m_current(0), m_unit(0)
{
setupUi(this);
setCategorized();
@@ -39,13 +40,16 @@ void ErrorWidget::setCompileResult(const WorkingUnit* unit, const CompileResult&
ui_raw->setText(results.raw());
- if(!ui_tabs->count()) hide();
+ qDebug() << "Compile result set for working unit" << unit;
+
+ // if(!ui_tabs->count()) hide();
}
void ErrorWidget::workingUnitChanged(const WorkingUnit* current)
{
m_current = current;
- setVisible(m_current == m_unit && ui_tabs->count());
+ qDebug() << "Working unit changed to" << current;
+ setVisible(m_current != 0 && m_current == m_unit);
}
void ErrorWidget::on_ui_viewMode_currentIndexChanged(int index)

0 comments on commit 368fc68

Please sign in to comment.