Ubuntu Pastebin

Paste from cimi at Fri, 6 Feb 2015 14:56:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
void Scopes::closeScope(unity::shell::scopes::ScopeInterface* scope)
{
    const int index = m_allScopes.indexOf((Scope*)scope);
    if (index >= 0) {
        setFavorite(scope->id(), false);
        beginRemoveRows(QModelIndex(), index, index);
        m_allScopes.removeAt(index);
        endInsertRows();
    }
}
Download as text