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{});