add dummy if no window for tab attach is available

BUG: 306451
FIXED-IN: 4.11
REVIEW: 109782
This commit is contained in:
Thomas Lübking 2013-03-23 22:20:35 +01:00
parent b3adc6254b
commit 2e2e13d89e

View file

@ -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()