Package: freemat / 4.0-3

09_warning.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ask in the warning if freemat-help was installed
--- a/libs/libCore/helpwidget.cpp
+++ b/libs/libCore/helpwidget.cpp
@@ -148,7 +148,7 @@ HelpWidget::HelpWidget(QString url, Help
   // Populate the list widget
   QFile *file = new QFile(url + "/modules.txt");
   if (!file->open(QFile::ReadOnly | QIODevice::Text))
-    QMessageBox::warning(this,"Cannot Find Module List","The file modules.txt is missing from the directory "+url+" where I think help files should be.  The Topic List widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
+    QMessageBox::warning(this,"Cannot Find Module List","The file modules.txt is missing from the directory "+url+" where I think help files should be (Have you installed freemat-help package?).  The Topic List widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
   else {
     QTextStream t(file);
     while (!t.atEnd()) {
@@ -177,7 +177,7 @@ HelpWidget::HelpWidget(QString url, Help
   file = new QFile(url + "/sectable.txt");
   QRegExp reg("\\+\\s*\\((\\b\\w+\\b)\\)\\s*(\\b.*)");
   if (!file->open(QFile::ReadOnly | QIODevice::Text))
-    QMessageBox::warning(this,"Cannot Find Section Index","The file sectable.txt is missing from the directory "+url+" where I think help files should be.  The Index widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
+    QMessageBox::warning(this,"Cannot Find Section Index","The file sectable.txt is missing from the directory "+url+" where I think help files should be (Have you installed freemat-help package?).  The Index widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
   else {
     QTextStream t(file);
     QTreeWidgetItem *prev = NULL;