Warning dialog upon Mussa Manual (QAssistant) error.
authorBrandon King <kingb@caltech.edu>
Fri, 2 Jun 2006 19:03:15 +0000 (19:03 +0000)
committerBrandon King <kingb@caltech.edu>
Fri, 2 Jun 2006 19:03:15 +0000 (19:03 +0000)
If there is an error with QAssistant when loading the Mussagl Manual,
a warning dialog will pop up with the error message.

This patch implements ticket:97.

qui/MussaWindow.cpp

index a34f1c168f131e953c29c7c1de020091bf69dde2..454c7253aa2d0f26c892ce70f8d7fc376de4e2b9 100644 (file)
@@ -429,7 +429,10 @@ void MussaWindow::showManual()
 
 void MussaWindow::assistantError(QString message)
 {
-  std::cout << "Error922: " << message.toStdString() << "\n";
+  //std::cout << "QAssistantError: " << message.toStdString() << "\n";
+  QMessageBox::warning ( this, "Warning: Mussagl Manual", message, 
+                        QMessageBox::Ok, 
+                        QMessageBox::NoButton);
 }
 
 void MussaWindow::NotImplementedBox()