diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index c5e54f35..eeae72e2 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -205,12 +205,8 @@ void Viewer::prepareForOpening() verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum()); - if (Configuration::getConfiguration().getShowInformation() && !information) { - auto timer = new QTimer(); - connect(timer, SIGNAL(timeout()), this, SLOT(informationSwitch())); - connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater())); - timer->start(); - } + if (Configuration::getConfiguration().getShowInformation() && !information) + QTimer::singleShot(0, this, &Viewer::informationSwitch); informationLabel->setText("..."); }