fixed edit lock

This commit is contained in:
Marc Zinnschlag 2012-12-03 21:51:42 +01:00
parent 49d6239004
commit 0a8b7602d3

View file

@ -169,7 +169,7 @@ void CSVDoc::View::updateDocumentState()
QList<CSVWorld::SubView *> subViews = findChildren<CSVWorld::SubView *>();
for (QList<CSVWorld::SubView *>::iterator iter (subViews.begin()); iter!=subViews.end(); ++iter)
(*iter)->setEditLock (state && CSMDoc::Document::State_Locked);
(*iter)->setEditLock (state & CSMDoc::Document::State_Locked);
}
void CSVDoc::View::updateProgress (int current, int max, int type, int threads)