This is a bit more specific than "Untitled-1".
shared_ptr<Session> MainWindow::add_session()
{
static int last_session_id = 1;
- QString name = tr("Untitled-%1").arg(last_session_id++);
+ QString name = tr("Session %1").arg(last_session_id++);
shared_ptr<Session> session = make_shared<Session>(device_manager_, name);
device_.reset();
- // Revert name back to default name (e.g. "Untitled-1") as the data is gone
+ // Revert name back to default name (e.g. "Session 1") as the data is gone
name_ = default_name_;
name_changed();
for (const shared_ptr<data::SignalData> d : all_signal_data_)
d->clear();
- // Revert name back to default name (e.g. "Untitled-1") as the data is gone
+ // Revert name back to default name (e.g. "Session 1") as the data is gone
name_ = default_name_;
name_changed();