fixed shortcut issue and focus error on OSX

preferencesAboutTextFull
Clément Fauconnier 6 years ago
parent 5f27f42429
commit c622c38920
  1. 8
      src/document/UBDocumentController.cpp

@ -1924,7 +1924,7 @@ void UBDocumentController::setupViews()
} }
} }
#ifdef Q_WS_MAC #ifdef Q_OS_OSX
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace)); mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace));
#endif #endif
@ -3019,10 +3019,12 @@ void UBDocumentController::focusChanged(QWidget *old, QWidget *current)
if (current == mDocumentUI->thumbnailWidget) if (current == mDocumentUI->thumbnailWidget)
{ {
/*
if (mDocumentUI->thumbnailWidget->selectedItems().count() > 0) if (mDocumentUI->thumbnailWidget->selectedItems().count() > 0)
mSelectionType = Page; mSelectionType = Page;
else else
mSelectionType = None; mSelectionType = None;
*/
} }
else if (current == mDocumentUI->documentTreeView) else if (current == mDocumentUI->documentTreeView)
{ {
@ -3080,6 +3082,10 @@ void UBDocumentController::updateActions()
} }
//N/C - NNE - 20140408 : END //N/C - NNE - 20140408 : END
#ifdef Q_OS_OSX
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace));
#endif
QModelIndex selectedIndex = firstSelectedTreeIndex(); QModelIndex selectedIndex = firstSelectedTreeIndex();
UBDocumentProxy *selectedProxy = docModel->proxyData(selectedIndex); UBDocumentProxy *selectedProxy = docModel->proxyData(selectedIndex);
int pageCount = -1; int pageCount = -1;

Loading…
Cancel
Save