about summary refs log tree commit diff
path: root/src/game/client/components/menus_demo.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-05 22:22:07 +0100
committeroy <Tom_Adams@web.de>2011-01-05 22:22:07 +0100
commit13902fef6c04697f334f4c6b1815e50eb17fdbfc (patch)
treeaaad283357f6187749e3acbee9d859e74a994774 /src/game/client/components/menus_demo.cpp
parent64e36b5095fc4838692bede15e36bf953cd44459 (diff)
downloadzcatch-13902fef6c04697f334f4c6b1815e50eb17fdbfc.tar.gz
zcatch-13902fef6c04697f334f4c6b1815e50eb17fdbfc.zip
show an error popup when demo deletion fails
Diffstat (limited to 'src/game/client/components/menus_demo.cpp')
-rw-r--r--src/game/client/components/menus_demo.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp
index b56f4d7f..8d0a5469 100644
--- a/src/game/client/components/menus_demo.cpp
+++ b/src/game/client/components/menus_demo.cpp
@@ -477,22 +477,6 @@ void CMenus::RenderDemoList(CUIRect MainView)
 		s_Inited = 1;
 	}
 
-	// delete demo
-	if(m_DemolistDelEntry)
-	{
-		if(m_DemolistSelectedIndex >= 0 && !m_DemolistSelectedIsDir)
-		{
-			char aBuf[512];
-			str_format(aBuf, sizeof(aBuf), "%s/%s", m_aCurrentDemoFolder, m_lDemos[m_DemolistSelectedIndex].m_aFilename);
-			if(Storage()->RemoveFile(aBuf, m_lDemos[m_DemolistSelectedIndex].m_StorageType))
-			{
-				DemolistPopulate();
-				DemolistOnUpdate(false);
-			}
-		}
-		m_DemolistDelEntry = false;
-	}
-
 	char aFooterLabel[128] = {0};
 	if(m_DemolistSelectedIndex >= 0)
 	{