mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-17 13:37:18 +03:00
add Debugging
This commit is contained in:
parent
34aef5bc7f
commit
0e6e1e4cde
@ -966,7 +966,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());
|
||||
|
Loading…
Reference in New Issue
Block a user