diff options
Diffstat (limited to 'src/gui/RadioButton.cpp')
-rw-r--r-- | src/gui/RadioButton.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/RadioButton.cpp b/src/gui/RadioButton.cpp index eb1f900..87428bf 100644 --- a/src/gui/RadioButton.cpp +++ b/src/gui/RadioButton.cpp @@ -135,4 +135,13 @@ namespace gsr { } } } + + const std::string RadioButton::get_selected_id() const { + if(items.empty()) { + static std::string dummy; + return dummy; + } else { + return items[selected_item].id; + } + } }
\ No newline at end of file |