projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
caa4a2d
)
MainWindow: Update tab text when session name changes
author
Soeren Apel
<soeren@apelpie.net>
Fri, 4 Nov 2016 17:21:37 +0000
(18:21 +0100)
committer
Soeren Apel
<soeren@apelpie.net>
Sun, 4 Dec 2016 13:37:38 +0000
(14:37 +0100)
pv/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index e213f511e7b1f92419d5154f337d524dbfc40c73..1738f9b16cfea0adfcfa65d6018c0bbffab68bf4 100644
(file)
--- a/
pv/mainwindow.cpp
+++ b/
pv/mainwindow.cpp
@@
-578,6
+578,14
@@
void MainWindow::on_session_name_changed()
}
}
}
}
+ // Update the tab widget by finding the main window and the tab from that
+ for (auto entry : session_windows_)
+ if (entry.first.get() == session) {
+ QMainWindow *window = entry.second;
+ const int index = session_selector_.indexOf(window);
+ session_selector_.setTabText(index, session->name());
+ }
+
// Refresh window title if the affected session has focus
if (session == last_focused_session_.get())
setWindowTitle(session->name() + " - " + WindowTitle);
// Refresh window title if the affected session has focus
if (session == last_focused_session_.get())
setWindowTitle(session->name() + " - " + WindowTitle);