the client marked as first shouldn't be closeable.

REVIEW:104093
This commit is contained in:
Marco Martin 2012-02-27 22:20:11 +01:00
parent 551ad4d4ff
commit aeccc69103

View file

@ -82,7 +82,8 @@ QVariant ClientModel::data(const QModelIndex& index, int role) const
case MinimizedRole:
return m_clientList[ clientIndex ]->isMinimized();
case CloseableRole:
return m_clientList[ clientIndex ]->isCloseable();
//clients that claim to be first are not closeable
return m_clientList[ clientIndex ]->isCloseable() && !m_clientList[ clientIndex ]->isFirstInTabBox();
default:
return QVariant();
}