mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Do not use & for boolean arguments
This commit is contained in:
parent
7fc4c9f3f6
commit
8283ec6cad
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ void CSVDoc::View::updateActions()
|
|||
for (std::vector<QAction *>::iterator iter (mEditingActions.begin()); iter!=mEditingActions.end(); ++iter)
|
||||
(*iter)->setEnabled (editing);
|
||||
|
||||
mUndo->setEnabled (editing & mDocument->getUndoStack().canUndo());
|
||||
mRedo->setEnabled (editing & mDocument->getUndoStack().canRedo());
|
||||
mUndo->setEnabled (editing && mDocument->getUndoStack().canUndo());
|
||||
mRedo->setEnabled (editing && mDocument->getUndoStack().canRedo());
|
||||
|
||||
mSave->setEnabled (!(mDocument->getState() & CSMDoc::State_Saving) && !running);
|
||||
mVerify->setEnabled (!(mDocument->getState() & CSMDoc::State_Verifying));
|
||||
|
|
Loading…
Reference in a new issue