From 2f963001c892ed5084659623212120703bd3d482 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 23 May 2022 16:20:06 -0500 Subject: [PATCH] Autopopulate the rename text box --- src/tabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp index 4e31153f..3bc7d8a1 100644 --- a/src/tabwidget.cpp +++ b/src/tabwidget.cpp @@ -201,7 +201,7 @@ void TabWidget::renameSession(int index) bool ok = false; QString text = QInputDialog::getText(this, tr("Tab name"), tr("New tab name:"), QLineEdit::Normal, - QString(), &ok); + tabBar()->tabText(index), &ok); if(ok && !text.isEmpty()) { setTabIcon(index, QIcon{});