mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-25 05:48:54 -04:00
Merge pull request #341 from kiwix/no-newtab-open-with-searchbar
open article from searchbar in the same tab
This commit is contained in:
commit
961c972b58
@ -136,6 +136,6 @@ void SearchBar::openCompletion(const QModelIndex &index)
|
||||
qurl.setScheme("zim");
|
||||
qurl.setHost(m_currentZimId+".zim");
|
||||
qurl.setPath(QString::fromStdString(url));
|
||||
QTimer::singleShot(0, [=](){KiwixApp::instance()->openUrl(qurl, true);});
|
||||
QTimer::singleShot(0, [=](){KiwixApp::instance()->openUrl(qurl, false);});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user