From aeccc69103963e6fd361939dbdc0c84717eb504e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 27 Feb 2012 22:20:11 +0100 Subject: [PATCH] the client marked as first shouldn't be closeable. REVIEW:104093 --- tabbox/clientmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabbox/clientmodel.cpp b/tabbox/clientmodel.cpp index 4ca7fef80a..e7ba4cced2 100644 --- a/tabbox/clientmodel.cpp +++ b/tabbox/clientmodel.cpp @@ -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(); }