[Companion][InputsPanel] Fix "ghost" input names being left over when moving items (closes #5740); Cut/paste and drag-move will now also copy the input name if destination input is nameless and source input becomes empty (will not duplicate names); Clean up/simplify some code. (#5942)

This commit is contained in:
Max Paperno
2018-06-03 23:16:20 +02:00
committed by Bertrand Songis
parent c19b1a65bf
commit 487c0de90f
4 changed files with 113 additions and 125 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ class ModelData {
void convert(RadioDataConversionState & cstate);
ExpoData * insertInput(const int idx);
void removeInput(const int idx);
void removeInput(const int idx, bool clearName = true);
bool isInputValid(const unsigned int idx) const;
bool hasExpos(uint8_t inputIdx) const;