+void MainWindow::on_tab_close_requested(int index)
+{
+ // TODO Ask user if this is intended in case data is unsaved
+
+ // Find the session that belongs to this main window and remove it
+ for (auto entry : session_windows_)
+ if (entry.second == session_selector_.widget(index)) {
+ remove_session(entry.first);
+ break;
+ }
+}
+