1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-24 15:39:47 +00:00

disable merge menu item when a merge is already in progress

(cherry picked from commit 708cacdec4)
This commit is contained in:
Marc Zinnschlag 2015-08-08 16:47:58 +02:00 committed by cc9cii
parent a5a0990d3c
commit c2ed475950

View file

@ -423,7 +423,8 @@ void CSVDoc::View::updateActions()
mGlobalDebugProfileMenu->updateActions (running); mGlobalDebugProfileMenu->updateActions (running);
mStopDebug->setEnabled (running); mStopDebug->setEnabled (running);
mMerge->setEnabled (mDocument->getContentFiles().size()>1); mMerge->setEnabled (mDocument->getContentFiles().size()>1 &&
!(mDocument->getState() & CSMDoc::State_Merging));
} }
CSVDoc::View::View (ViewManager& viewManager, CSMDoc::Document *document, int totalViews) CSVDoc::View::View (ViewManager& viewManager, CSMDoc::Document *document, int totalViews)