mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 03:26:05 -04:00
Merge pull request #158 from kiwix/stay-in-current-tab
don't open new tab
This commit is contained in:
commit
7e5d4708ee
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user