Browse Source

Remove DeselectSurfaceCmd use if no surface selected

master
Krisjanis Rijnieks 9 years ago
parent
commit
c0bca38193
  1. 2
      src/Application/ProjectionMappingState.cpp

2
src/Application/ProjectionMappingState.cpp

@ -341,7 +341,9 @@ void ProjectionMappingState::onSurfacePressed(Application * app, GuiSurfaceEvent
} }
void ProjectionMappingState::onBackgroundPressed(Application * app, GuiBackgroundEvent & e){ void ProjectionMappingState::onBackgroundPressed(Application * app, GuiBackgroundEvent & e){
if(app->getSurfaceManager()->getSelectedSurface() != 0){
app->getCmdManager()->exec(new DeselectSurfaceCmd(app->getSurfaceManager())); app->getCmdManager()->exec(new DeselectSurfaceCmd(app->getSurfaceManager()));
}
} }
void ProjectionMappingState::onGuiEvent(Application * app, GuiEvent & e){ void ProjectionMappingState::onGuiEvent(Application * app, GuiEvent & e){

Loading…
Cancel
Save