Refactor CRobotMain::DeleteObject -> DestroySelectedObject

master
Piotr Dziwinski 2015-09-06 12:37:49 +02:00
parent b1e383f89e
commit 44a1f85891
2 changed files with 3 additions and 3 deletions

View File

@ -991,7 +991,7 @@ bool CRobotMain::ProcessEvent(Event &event)
case EVENT_OBJECT_DELETE:
m_ui->GetDialog()->StartQuestion(RT_DIALOG_DELOBJ, true, false, false, [&]() {
DeleteObject();
DestroySelectedObject();
});
break;
@ -1983,7 +1983,7 @@ bool CRobotMain::IsSelectable(CObject* obj)
//! Deletes the selected object
bool CRobotMain::DeleteObject()
bool CRobotMain::DestroySelectedObject()
{
CObject* obj = GetSelect();
if (obj == nullptr) return false;

View File

@ -198,7 +198,6 @@ public:
bool SelectObject(CObject* pObj, bool displayError=true);
CObject* GetSelectObject();
CObject* DeselectAll();
bool DeleteObject();
void ResetObject();
void UpdateAudio(bool frame);
@ -413,6 +412,7 @@ protected:
int AutosaveRotate(bool freeOne);
void Autosave();
bool DestroySelectedObject();
void PushToSelectionHistory(CObject* obj);
CObject* PopFromSelectionHistory();