Skip to content

Commit

Permalink
Disable remove button in composer manager for default templates to pr…
Browse files Browse the repository at this point in the history
…event crash

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13232 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 3, 2010
1 parent 01e9d2d commit 3b222cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/composer/qgscomposermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 3b222cb

Please sign in to comment.