mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
56a398ebe8
commit
912abdc45e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user