diff --git a/daily.cpp b/daily.cpp index 5bc39817..75ce947e 100644 --- a/daily.cpp +++ b/daily.cpp @@ -888,7 +888,8 @@ void Daily::on_nextDayButton_clicked() void Daily::on_calButton_toggled(bool checked) { - bool b=!ui->calendar->isVisible(); + //bool b=!ui->calendar->isVisible(); + bool b=checked; ui->calendar->setVisible(b); if (!b) ui->calButton->setArrowType(Qt::DownArrow); else ui->calButton->setArrowType(Qt::UpArrow);