13
0

add SessionDialog::clear_name()

This commit is contained in:
Paul Davis 2019-10-08 21:48:11 -06:00
parent 0ea5344be6
commit 195245fdb0
2 changed files with 8 additions and 0 deletions

View File

@ -319,6 +319,13 @@ SessionDialog::session_template_name ()
return string();
}
void
SessionDialog::clear_name ()
{
recent_session_display.get_selection()->unselect_all();
new_name_entry.set_text (string());
}
std::string
SessionDialog::session_name (bool& should_be_new)
{

View File

@ -69,6 +69,7 @@ public:
_provided_session_name = session_name;
_provided_session_path = session_path;
}
void clear_name ();
private:
bool new_only;