]> git.cworth.org Git - apitrace/commitdiff
Show a warning box if astyle isn't installed and indent was activated.
authorZack Rusin <zack@kde.org>
Tue, 27 Sep 2011 03:54:21 +0000 (23:54 -0400)
committerZack Rusin <zack@kde.org>
Tue, 27 Sep 2011 03:55:04 +0000 (23:55 -0400)
gui/glsledit.cpp

index f0e461383ea733f3b391c328a336e3f20b008bb3..b73f0980bb103962b8d1c40e8e2763d489163318 100644 (file)
@@ -979,6 +979,12 @@ void GLSLEdit::indent()
     astyle.start("astyle");
     if (!astyle.waitForStarted()) {
         qDebug()<<"Couldn't start the 'astyle' process!";
+        QMessageBox::warning(this,
+                             tr("QApiTrace"),
+                             tr("QApiTrace could not locate the 'astyle'\n"
+                                "binary. Make sure 'astyle' is installed\n"
+                                "and in the PATH."),
+                             QMessageBox::Ok);
         return;
     }