Commit 48bdf106 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

welcome screen: fix prev tip for good

parent 900ec2aa
......@@ -321,7 +321,7 @@ void WelcomeMode::slotNextTip()
void WelcomeMode::slotPrevTip()
{
QStringList tips = tipsOfTheDay();
m_d->currentTip = tips.count()-((m_d->currentTip-1)%tips.count());
m_d->currentTip = ((m_d->currentTip-1)+tips.count())%tips.count();
m_d->ui.didYouKnowTextBrowser->setText(tips.at(m_d->currentTip));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment