Skip to content

Commit

Permalink
Fixed crash when displaying a notification witout id afer one with id
Browse files Browse the repository at this point in the history
  • Loading branch information
sboli committed Aug 28, 2011
1 parent b4de47d commit 2d480e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twmnd/widget.cpp
Expand Up @@ -588,16 +588,16 @@ void Widget::onHide()

void Widget::autoNext()
{
Q_ASSERT (m_messageQueue.size() >= 2);
Message&m = m_messageQueue.front();
// The user already saw it manually.
if (m.data["manually_shown"]) {
m_messageQueue.pop_front();
reverseStart();
}
else {
QString soundCommand = m.data["sc"]->toString();
if (!soundCommand.isEmpty())
QProcess::startDetached(soundCommand);
if ((m_messageQueue.begin()+1)->data["sc"])
QProcess::startDetached((m_messageQueue.begin()+1)->data["sc"]->toString());
}
onNext();
}
Expand Down

0 comments on commit 2d480e1

Please sign in to comment.