Verified Commit 536700d1 authored by Antonio Prcela's avatar Antonio Prcela 🏞
Browse files

Negate once instead of five times

parent 6d0e5514
......@@ -170,12 +170,13 @@ void KSMainWindow::init()
mKSWidget->showAnnotator();
mAnnotateButton->setText(i18n("Annotation done"));
}
mAnnotatorActive = !mAnnotatorActive;
mToolsButton->setEnabled(!mAnnotatorActive);
mSendToButton->setEnabled(!mAnnotatorActive);
mClipboardButton->setEnabled(!mAnnotatorActive);
mSaveButton->setEnabled(!mAnnotatorActive);
mToolsButton->setEnabled(mAnnotatorActive);
mSendToButton->setEnabled(mAnnotatorActive);
mClipboardButton->setEnabled(mAnnotatorActive);
mSaveButton->setEnabled(mAnnotatorActive);
mAnnotatorActive = !mAnnotatorActive;
});
mDialogButtonBox->addButton(mAnnotateButton, QDialogButtonBox::ActionRole);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment