From 2e2e13d89e656b521ac735b83c6cf8994c6050cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 23 Mar 2013 22:20:35 +0100 Subject: [PATCH] add dummy if no window for tab attach is available BUG: 306451 FIXED-IN: 4.11 REVIEW: 109782 --- useractions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/useractions.cpp b/useractions.cpp index 1670985c55..5d6e937cad 100755 --- a/useractions.cpp +++ b/useractions.cpp @@ -552,6 +552,8 @@ void UserActionsMenu::rebuildTabGroupPopup() continue; m_addTabsMenu->addAction(shortCaption((*i)->caption()))->setData(QVariant::fromValue(*i)); } + if (m_addTabsMenu->actions().isEmpty()) + m_addTabsMenu->addAction(i18nc("There's no window available to be attached as tab to this one", "None available"))->setEnabled(false); } void UserActionsMenu::initTabbingPopups()