From: Uwe Hermann Date: Fri, 3 Mar 2017 23:32:43 +0000 (+0100) Subject: Name session tabs "Session 1" per default. X-Git-Tag: pulseview-0.4.0~178 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7b254679cb45fc4d032fe68c0797642a237f0fa6;p=pulseview.git Name session tabs "Session 1" per default. This is a bit more specific than "Untitled-1". --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 662d68af..500d2a43 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -268,7 +268,7 @@ void MainWindow::remove_view(shared_ptr view) shared_ptr 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 = make_shared(device_manager_, name); diff --git a/pv/session.cpp b/pv/session.cpp index c4649428..c9a569f7 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -383,7 +383,7 @@ void Session::set_device(shared_ptr device) 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(); @@ -532,7 +532,7 @@ void Session::start_capture(function error_handler) for (const shared_ptr 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();