Changeset 385:5f0e735f46e1 in SMSSender for gateways/Schoolnet/gui/ui/senddialogintegration.cpp


Ignore:
Timestamp:
Apr 16, 2014 11:29:11 AM (5 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
separation-frontend-backend
Message:
  • Fixes crash when switching to another question in the Schoolnet send-integration and then providing the answer for it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gateways/Schoolnet/gui/ui/senddialogintegration.cpp

    r384 r385  
    7272        Q_ASSERT(layout);
    7373
    74         m_questionBox.reset(new DeepThought::UI::QuestionBox(*m_question, sendDialog));
     74        m_questionBox.reset(new DeepThought::UI::QuestionBox(m_question, sendDialog));
    7575        connect(m_questionBox.data(), SIGNAL(answerProvided(DeepThought::Answer*)),
    7676                this, SLOT(onAnswerProvided(DeepThought::Answer*)),
     
    114114    m_question = !openQuestions.empty() ? openQuestions.first() : NULL;
    115115    if (m_question && m_questionBox) {
    116         m_questionBox->loadQuestion(*m_question);
     116        m_questionBox->loadQuestion(m_question);
    117117    }
    118118}
Note: See TracChangeset for help on using the changeset viewer.