Skip to content
Permalink
Browse files
Disable remove button in composer manager for default templates to pr…
…event crash

git-svn-id: http://svn.osgeo.org/qgis/trunk@13232 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 3, 2010
1 parent 1b7e346 commit 6ed804ff8635ed964deb39b377c19b7d5e938c7d
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/composer/qgscomposermanager.cpp
@@ -225,9 +225,11 @@ void QgsComposerManager::on_mComposerListWidget_currentItemChanged( QListWidgetI
if ( mDefaultTemplateMap.contains( current->text() ) )
{
mRenamePushButton->setEnabled( false );
mRemoveButton->setEnabled( false );
}
else
{
mRenamePushButton->setEnabled( true );
mRemoveButton->setEnabled( true );
}
}

0 comments on commit 6ed804f

Please sign in to comment.