diff --git a/src/kiwixapp.cpp b/src/kiwixapp.cpp index 30af0b2..45bbc53 100644 --- a/src/kiwixapp.cpp +++ b/src/kiwixapp.cpp @@ -256,7 +256,7 @@ void KiwixApp::createAction() CREATE_ACTION_ICON(RandomArticleAction, "random", tr("Random Article")); SET_SHORTCUT(RandomArticleAction, QKeySequence(Qt::CTRL+Qt::Key_R)); connect(mpa_actions[RandomArticleAction], &QAction::triggered, - this, [=]() { this->openRandomUrl(); }); + this, [=]() { this->openRandomUrl(false); }); CREATE_ACTION_ICON(PrintAction, "print", tr("Print")); SET_SHORTCUT(PrintAction, QKeySequence::Print); diff --git a/src/searchbar.cpp b/src/searchbar.cpp index 75e40c9..bc330bd 100644 --- a/src/searchbar.cpp +++ b/src/searchbar.cpp @@ -138,7 +138,7 @@ void SearchBar::openTitle() qurl.setScheme("zim"); qurl.setHost(zimId+".zim"); qurl.setPath("/" + QString::fromStdString(path)); - QTimer::singleShot(0, [=](){KiwixApp::instance()->openUrl(qurl, true);}); + QTimer::singleShot(0, [=](){KiwixApp::instance()->openUrl(qurl, false);}); clearFocus(); }