Commit d0e34731 authored by Clément Fauconnier's avatar Clément Fauconnier

delete shortcut was no more working on Windows

parent c622c389
...@@ -1926,6 +1926,8 @@ void UBDocumentController::setupViews() ...@@ -1926,6 +1926,8 @@ void UBDocumentController::setupViews()
#ifdef Q_OS_OSX #ifdef Q_OS_OSX
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace)); mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace));
#else
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Delete));
#endif #endif
connect(mMainWindow->actionDelete, SIGNAL(triggered()), this, SLOT(deleteSelectedItem())); connect(mMainWindow->actionDelete, SIGNAL(triggered()), this, SLOT(deleteSelectedItem()));
...@@ -3084,6 +3086,8 @@ void UBDocumentController::updateActions() ...@@ -3084,6 +3086,8 @@ void UBDocumentController::updateActions()
#ifdef Q_OS_OSX #ifdef Q_OS_OSX
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace)); mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Backspace));
#else
mMainWindow->actionDelete->setShortcut(QKeySequence(Qt::Key_Delete));
#endif #endif
QModelIndex selectedIndex = firstSelectedTreeIndex(); QModelIndex selectedIndex = firstSelectedTreeIndex();
......
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