Browse Source

Use SurfaceManager::removeSurface(index) in RmSurfaceCmd

master
Krisjanis Rijnieks 8 years ago
parent
commit
61a2e25e4f
  1. 2
      src/Commands/RmSurfaceCmd.cpp

2
src/Commands/RmSurfaceCmd.cpp

@ -14,7 +14,7 @@ void RmSurfaceCmd::exec(){
// removeSelectedSurface does not destroy the surface.
// The owner is being changed.
_surface = _surfaceManager->getSurface(_surfaceIndex);
_surfaceManager->removeSelectedSurface();
_surfaceManager->removeSurface(_surfaceIndex);
}
void RmSurfaceCmd::undo(){

Loading…
Cancel
Save