From adc9f1a7ce0bc91d07de1fa4a185fcce0e56c441 Mon Sep 17 00:00:00 2001 From: luddens Date: Tue, 21 May 2019 13:32:05 +0200 Subject: [PATCH 1/2] searchbar research doesn't open new tab --- src/searchbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } From badb43ec7bbdfc29bfca8b24b74e5561897d8aab Mon Sep 17 00:00:00 2001 From: luddens Date: Tue, 21 May 2019 15:49:27 +0200 Subject: [PATCH 2/2] open random article doesn't open new tab --- src/kiwixapp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);