]>
Commit | Line | Data |
---|---|---|
54f43858 | 1 | diff -ur scribus-1.2.1/scribus/helpbrowser.cpp scribus-1.2.1-help/scribus/helpbrowser.cpp |
2 | --- scribus-1.2.1/scribus/helpbrowser.cpp 2005-01-06 21:18:30.000000000 +0100 | |
3 | +++ scribus-1.2.1-help/scribus/helpbrowser.cpp 2005-01-08 22:44:17.000000000 +0100 | |
4 | @@ -187,6 +187,7 @@ | |
5 | void HelpBrowser::jumpToHelpSection(QString jumpToSection, QString jumpToFile) | |
6 | { | |
7 | QString toLoad; | |
8 | + bool noDocs=false; | |
9 | ||
10 | if (jumpToFile=="") | |
11 | { | |
12 | @@ -194,8 +195,13 @@ | |
13 | toLoad = pfad + language + "/"; //clean this later to handle 5 char locales | |
14 | if (jumpToSection=="") | |
15 | { | |
16 | - toLoad+=listView->firstChild()->text(1); | |
17 | - listView->setSelected( listView->firstChild(), true ); | |
18 | + if (listView->firstChild()) | |
19 | + { | |
20 | + toLoad+=listView->firstChild()->text(1); | |
21 | + listView->setSelected( listView->firstChild(), true ); | |
22 | + } | |
23 | + else | |
24 | + noDocs=true; | |
25 | } | |
26 | else if (jumpToSection=="scripter") | |
27 | { | |
28 | @@ -214,7 +220,10 @@ | |
29 | else | |
30 | toLoad=jumpToFile; | |
31 | ||
32 | - loadHelp(toLoad); | |
33 | + if (!noDocs) | |
34 | + loadHelp(toLoad); | |
35 | + else | |
36 | + textBrowser->setText("<h2>"+ tr("Sorry, no manual available! Please see: http://docs.scribus.net for updated docs\nand www.scribus.net for downloads.")+"</h2>"); | |
37 | } | |
38 | ||
39 | void HelpBrowser::loadHelp(QString filename) |