Apply patch in ticket #365.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6043 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2006-10-31 08:18:57 +00:00
parent 56a398ebe8
commit 912abdc45e

View File

@ -147,6 +147,7 @@ QgsGrassMapcalc::QgsGrassMapcalc (
mActionDeleteItem = new QAction( QIcon(myIconPath+"mapcalc_delete.png"),
tr("Delete selected item"), this);
mActionDeleteItem->setCheckable ( true );
mActionDeleteItem->setEnabled ( false );
ag->addAction ( mActionDeleteItem );
tb->addAction ( mActionDeleteItem );
connect ( mActionDeleteItem, SIGNAL(triggered()), this, SLOT(deleteItem()) );
@ -798,6 +799,7 @@ void QgsGrassMapcalc::setTool( int tool )
showOptions(mTool);
setToolActionsOff();
mActionDeleteItem->setEnabled( false );
mCanvas->update();
}