diff options
author | Zack Rusin <zack@kde.org> | 2011-09-26 23:54:21 -0400 |
---|---|---|
committer | Zack Rusin <zack@kde.org> | 2011-09-26 23:55:04 -0400 |
commit | 50049dec4f52d87039df979fd5039d24d1db1ac5 (patch) | |
tree | f558c4c556b0e3ab8d597f5cc85d75168de9d950 | |
parent | 1b8305c0c318b54e71c180323baf748bc9656976 (diff) |
Show a warning box if astyle isn't installed and indent was activated.
-rw-r--r-- | gui/glsledit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |