File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ void QgsGrassModule::readStderr()
707
707
708
708
QString line;
709
709
QRegExp rxpercent ( " GRASS_INFO_PERCENT: (\\ d+)" );
710
+ QRegExp rxmessage ( " GRASS_INFO_MESSAGE\\ (\\ d+,\\ d+\\ ): (.*)" );
710
711
QRegExp rxwarning ( " GRASS_INFO_WARNING\\ (\\ d+,\\ d+\\ ): (.*)" );
711
712
QRegExp rxerror ( " GRASS_INFO_ERROR\\ (\\ d+,\\ d+\\ ): (.*)" );
712
713
QRegExp rxend ( " GRASS_INFO_END\\ (\\ d+,\\ d+\\ )" );
@@ -719,6 +720,8 @@ void QgsGrassModule::readStderr()
719
720
if ( rxpercent.search ( line ) != -1 ) {
720
721
int progress = rxpercent.cap (1 ).toInt ();
721
722
mProgressBar ->setProgress ( progress, 100 );
723
+ } else if ( rxmessage.search ( line ) != -1 ) {
724
+ mOutputTextBrowser ->append ( rxmessage.cap (1 ) );
722
725
} else if ( rxwarning.search ( line ) != -1 ) {
723
726
QString warn = rxwarning.cap (1 );
724
727
QString img = mAppDir + " /share/qgis/themes/default/grass/grass_module_warning.png" ;
You can’t perform that action at this time.
0 commit comments