I am trying to simulate a simple 4-button remote control, it works but when I use the "UNDO" (Ctrl+Z) command in the shema the automatically inserted transmitter appears 2 times because the code:
std :: string nameID = getId ();
QString qnameID (nameID.c_str ());
qnameID.replace (0, 11, "");
int m_id = qnameID.toInt ();
m_id ++;
qnameID = "Command4-" + QString :: number (m_id);
command_id = Circuit :: self () -> getCompId (qnameID);
m_command = Circuit :: self () -> getCompById (command_id);
it does not find the component that even if present in the diagram no longer appears in the components list used by "getCompById".
I do not understand where am I wrong if you can take a look thank you.
I attach the files.
Greetings
std :: string nameID = getId ();
QString qnameID (nameID.c_str ());
qnameID.replace (0, 11, "");
int m_id = qnameID.toInt ();
m_id ++;
qnameID = "Command4-" + QString :: number (m_id);
command_id = Circuit :: self () -> getCompId (qnameID);
m_command = Circuit :: self () -> getCompById (command_id);
it does not find the component that even if present in the diagram no longer appears in the components list used by "getCompById".
I do not understand where am I wrong if you can take a look thank you.
I attach the files.
Greetings
- Attachments
- Command4.zip
- Simulide 0.4.15
- You don't have permission to download attachments.
- (1 Kb) Downloaded 2 times
- Command.zip
- Simulide 0.4.15
- You don't have permission to download attachments.
- (8 Kb) Downloaded 2 times