mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Merge pull request #153 from kiwix/fix-crash-non-existing-file
Fix crash when trying to open non existing file
This commit is contained in:
commit
38037bbcdf
@ -43,6 +43,8 @@ void WebView::onUrlChanged(const QUrl& url) {
|
||||
emit zimIdChanged(m_currentZimId);
|
||||
auto app = KiwixApp::instance();
|
||||
auto reader = app->getLibrary()->getReader(m_currentZimId);
|
||||
if (!reader)
|
||||
return;
|
||||
std::string favicon, _mimetype;
|
||||
reader->getFavicon(favicon, _mimetype);
|
||||
QPixmap pixmap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user