|
From: <cn...@us...> - 2024-08-21 19:57:29
|
Revision: 1518
http://sourceforge.net/p/seq/svn/1518
Author: cn187
Date: 2024-08-21 19:57:26 +0000 (Wed, 21 Aug 2024)
Log Message:
-----------
Enable menu options for renaming/deleting spawn points
Modified Paths:
--------------
showeq/trunk/src/spawnpointlist.cpp
Modified: showeq/trunk/src/spawnpointlist.cpp
===================================================================
--- showeq/trunk/src/spawnpointlist.cpp 2024-08-21 19:57:12 UTC (rev 1517)
+++ showeq/trunk/src/spawnpointlist.cpp 2024-08-21 19:57:26 UTC (rev 1518)
@@ -242,8 +242,10 @@
// the list is limited to one selection at a time, so we can take the first
SEQListViewItem* item = selected.first();
+ m_menu->setCurrentItem((SpawnPointListItem*)item);
if (item == NULL) return;
+
const SpawnPoint* sp = NULL;
if ( item )
@@ -527,6 +529,8 @@
void SpawnPointListMenu::setCurrentItem(const SpawnPointListItem* item)
{
m_currentItem = item;
+ m_action_rename->setEnabled(m_currentItem != NULL);
+ m_action_delete->setEnabled(m_currentItem != NULL);
}
void SpawnPointListMenu::init_menu()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|