Skip to content

Commit

Permalink
add Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmele committed Jul 22, 2023
1 parent 0c5035f commit 9bcfefe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,9 @@ void MenuBar::updateCutCopyPaste() {
mFindSelection->setEnabled(false);

QWidget *widget = QApplication::focusWidget();
Debug("Starting reading clipboard");
bool canPaste = !QApplication::clipboard()->text().isEmpty();
Debug("Finished reading clipboard");
if (TextEditor *editor = qobject_cast<TextEditor *>(widget)) {
mCut->setEnabled(!editor->selectionEmpty() && !editor->readOnly());
mCopy->setEnabled(!editor->selectionEmpty());
Expand Down

0 comments on commit 9bcfefe

Please sign in to comment.