0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Small bug fix to prevent reloading

This commit is contained in:
vanosten 2010-04-28 17:11:59 +00:00
parent b8712b6144
commit c9f6de1abc

View File

@ -101,7 +101,7 @@ public class Model {
protected static Model getModel(long identifier, boolean isModelId) {
if (false == isModelId) {
//check whether the identifier is in the cardModelsMap
if (null == currentModel || currentModel.cardModelsMap.containsKey(identifier)) {
if (null == currentModel || false == currentModel.cardModelsMap.containsKey(identifier)) {
//get the modelId
long myModelId = CardModel.modelIdFromDB(identifier);
//get the model