mapeditor.cpp
branchrelease-1-12-maintained
changeset 76 a36a289372a6
parent 74 98449ef9eccd
child 77 bdfc1079a723
     1.1 --- a/mapeditor.cpp	Thu Jul 30 12:55:17 2009 +0000
     1.2 +++ b/mapeditor.cpp	Thu Aug 06 17:33:55 2009 +0000
     1.3 @@ -3612,8 +3612,10 @@
     1.4  	BranchObj *bo=xelection.getBranch();
     1.5  	if (bo)
     1.6  	{		
     1.7 -		QString url= "https://bugzilla.novell.com/show_bug.cgi?id="+bo->getHeading();
     1.8 -		setURL (url);
     1.9 +		QString h=bo->getHeading();
    1.10 +		QRegExp rx("^(\\d+)");
    1.11 +		if (rx.indexIn(h) !=-1)
    1.12 +			setURL ("https://bugzilla.novell.com/show_bug.cgi?id="+rx.cap(1) );
    1.13  	}
    1.14  }	
    1.15