From: Zack Rusin Date: Tue, 27 Sep 2011 03:54:21 +0000 (-0400) Subject: Show a warning box if astyle isn't installed and indent was activated. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=50049dec4f52d87039df979fd5039d24d1db1ac5;p=apitrace Show a warning box if astyle isn't installed and indent was activated. --- diff --git a/gui/glsledit.cpp b/gui/glsledit.cpp index f0e4613..b73f098 100644 --- a/gui/glsledit.cpp +++ b/gui/glsledit.cpp @@ -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; }