Skip to content

Commit 2b39dc8

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plugins/grass/qgsgrasstools.cpp

Lines changed: 6 additions & 0 deletions
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)