aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/helpwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2009-12-20 21:43:25 +0000
committerGravatar Fabio Bas2009-12-20 21:43:25 +0000
commita4ae63775c47bb3315f7f0b9035ee550db275fc8 (patch)
tree8c128d9607f4aac44e83f9fe48866e7caf144b0d /src/modules/help/helpwindow.cpp
parentfixed visibility for modules (diff)
downloadKVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.tar.gz
KVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.tar.bz2
KVIrc-a4ae63775c47bb3315f7f0b9035ee550db275fc8.zip
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
Diffstat (limited to 'src/modules/help/helpwindow.cpp')
-rw-r--r--src/modules/help/helpwindow.cpp6
1 files changed, 3 insertions, 3 deletions
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()