Blob Blame History Raw
diff -r b5941b52fa15 src/LatexEditor.cpp
--- a/src/LatexEditor.cpp	Wed Jan 18 19:08:53 2012 +0100
+++ b/src/LatexEditor.cpp	Wed Jan 18 19:09:46 2012 +0100
@@ -206,14 +206,14 @@
 
 bool LatexEditor::findNext()
 {
-    find(findExpr, findFlags);
+    return find(findExpr, findFlags);
 }
 
 bool LatexEditor::findPrevious()
 {
     findFlags = findFlags | QTextDocument::FindBackward;
 
-    find(findExpr, findFlags);
+    return find(findExpr, findFlags);
 }
 
 void LatexEditor::insertCompletion(const QString &completion)
diff -r b5941b52fa15 src/MainWindow.cpp
--- a/src/MainWindow.cpp	Wed Jan 18 19:08:53 2012 +0100
+++ b/src/MainWindow.cpp	Wed Jan 18 19:09:46 2012 +0100
@@ -314,7 +314,7 @@
     toolSums->addAction(ui->actionSum_sum);
     toolSums->addAction(ui->actionSum_sumArgs);
     toolSums->addAction(ui->actionSum_sumArgs2);
-    
+
     toolIntegrals = new WidgetToolMenu(2,1, this);
     toolIntegrals->addAction(ui->actionInt_simple);
     toolIntegrals->addAction(ui->actionInt_oint);
@@ -648,7 +648,7 @@
 
     if(!status)
         QMessageBox::critical(this, "Error", mess );
-
+	 return status;
 }
 
 bool MainWindow::exportToGIF()
@@ -728,6 +728,7 @@
 
     if(!status)
         QMessageBox::critical(this, "Error", mess );
+	 return status;
 }
 
 bool MainWindow::exportToROOT()
@@ -1013,12 +1014,13 @@
 
     process.start(commandStr);
 
-    if (!process.waitForFinished())
+    if (!process.waitForFinished()) {
         qDebug() << "[Failed] " << process.errorString();
+		  return false;
+	 }
     else
         qDebug() << "[Output]" << process.readAll();
-
-
+	 return true;
 }
 
 void MainWindow::setupParser()