Only selector tool can create and remove groups.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 9b8694c9bf
commit d9cc7b6ecd
  1. 5
      src/domain/UBGraphicsScene.cpp

@ -317,6 +317,11 @@ void UBGraphicsScene::selectionChangedProcessing()
void UBGraphicsScene::updateGroupButtonState() void UBGraphicsScene::updateGroupButtonState()
{ {
UBStylusTool::Enum currentTool = (UBStylusTool::Enum)UBDrawingController::drawingController()->stylusTool();
if (UBStylusTool::Selector != currentTool)
return;
QAction *groupAction = UBApplication::mainWindow->actionGroupItems; QAction *groupAction = UBApplication::mainWindow->actionGroupItems;
QList<QGraphicsItem*> selItems = selectedItems(); QList<QGraphicsItem*> selItems = selectedItems();
int selCount = selItems.count(); int selCount = selItems.count();

Loading…
Cancel
Save