From 50049dec4f52d87039df979fd5039d24d1db1ac5 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 26 Sep 2011 23:54:21 -0400 Subject: [PATCH] Show a warning box if astyle isn't installed and indent was activated. --- gui/glsledit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.43.0