Skip to content

Commit 38e074f

Browse files
author
rblazek
committed
warning if MSYS cannot be started
git-svn-id: http://svn.osgeo.org/qgis/trunk@4918 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2301e8c commit 38e074f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plugins/grass/qgsgrasstools.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ void QgsGrassTools::moduleClicked( Q3ListViewItem * item )
198198
{
199199
QProcess *proc = new QProcess(this);
200200
proc->start (msysPath);
201+
proc->waitForStarted();
202+
if ( proc->state() != QProcess::Running )
203+
{
204+
QMessageBox::warning( 0, "Warning",
205+
"Cannot start MSYS (" + msysPath + ")" );
206+
}
201207
}
202208
return;
203209
#else

0 commit comments

Comments
 (0)