]> git.pld-linux.org Git - packages/scribus.git/commitdiff
- fixes helpbrowser without docs package, thanks to Craig Bradney from the
authordeejay1 <deejay1@pld-linux.org>
Sat, 8 Jan 2005 21:51:21 +0000 (21:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  Scribus Team

Changed files:
    scribus-helpbrowser.patch -> 1.1

scribus-helpbrowser.patch [new file with mode: 0644]

diff --git a/scribus-helpbrowser.patch b/scribus-helpbrowser.patch
new file mode 100644 (file)
index 0000000..3549f7f
--- /dev/null
@@ -0,0 +1,39 @@
+diff -ur scribus-1.2.1/scribus/helpbrowser.cpp scribus-1.2.1-help/scribus/helpbrowser.cpp
+--- scribus-1.2.1/scribus/helpbrowser.cpp      2005-01-06 21:18:30.000000000 +0100
++++ scribus-1.2.1-help/scribus/helpbrowser.cpp 2005-01-08 22:44:17.000000000 +0100
+@@ -187,6 +187,7 @@
+ void HelpBrowser::jumpToHelpSection(QString jumpToSection, QString jumpToFile)
+ {
+       QString toLoad;
++      bool noDocs=false;
+       if (jumpToFile=="") 
+       {
+@@ -194,8 +195,13 @@
+               toLoad = pfad + language + "/"; //clean this later to handle 5 char locales
+               if (jumpToSection=="") 
+               {
+-                      toLoad+=listView->firstChild()->text(1);
+-                      listView->setSelected( listView->firstChild(), true );
++                      if (listView->firstChild())
++                      {
++                              toLoad+=listView->firstChild()->text(1);
++                              listView->setSelected( listView->firstChild(), true );
++                      }
++                      else
++                              noDocs=true;
+               }
+               else if (jumpToSection=="scripter") 
+               {
+@@ -214,7 +220,10 @@
+       else
+               toLoad=jumpToFile;
+-      loadHelp(toLoad);
++      if (!noDocs)
++              loadHelp(toLoad);
++      else
++              textBrowser->setText("<h2>"+ tr("Sorry, no manual available! Please see: http://docs.scribus.net for updated docs\nand www.scribus.net for downloads.")+"</h2>");
+ }
+ void HelpBrowser::loadHelp(QString filename)
This page took 0.11754 seconds and 4 git commands to generate.