From a4ae63775c47bb3315f7f0b9035ee550db275fc8 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 20 Dec 2009 21:43:25 +0000 Subject: fixed help module blank screen on index/search item selection git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3723 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/help/helpwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/help/helpwindow.cpp') diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp index 8dfeefe09..abc3b24f1 100644 --- a/src/modules/help/helpwindow.cpp +++ b/src/modules/help/helpwindow.cpp @@ -231,7 +231,7 @@ void KviHelpWindow::showIndexTopic() { if (m_pIndexSearch->text().isEmpty()|| !m_pIndexListWidget->selectedItems().count()) return; int i=g_pDocIndex->titlesList().indexOf(m_pIndexListWidget->selectedItems().at(0)->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchInIndex( const QString &s ) @@ -255,14 +255,14 @@ void KviHelpWindow::indexSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } void KviHelpWindow::searchSelected ( QListWidgetItem *item ) { if (!item) return; int i=g_pDocIndex->titlesList().indexOf(item->text()); - textBrowser()->setSource(QUrl::fromLocalFile(g_pDocIndex->documentList()[ i ])); + textBrowser()->setSource(QUrl(g_pDocIndex->documentList()[ i ])); } QPixmap * KviHelpWindow::myIconPtr() -- cgit v1.3.1-10-gc9f91