From 366555918c22a6068699897c7c2f294c388d8d82 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 9 Apr 2013 06:04:57 +0000 Subject: [PATCH] The paste enable correction. Fixes a regression in the last commit. --- src/TableViewer/TableViewer_ViewWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TableViewer/TableViewer_ViewWindow.cxx b/src/TableViewer/TableViewer_ViewWindow.cxx index 2ee34b46e..efc34b34c 100755 --- a/src/TableViewer/TableViewer_ViewWindow.cxx +++ b/src/TableViewer/TableViewer_ViewWindow.cxx @@ -291,8 +291,8 @@ void TableViewer_ViewWindow::selectionChanged() { QModelIndexList anItems = myTable->getSelectedIndexes(); bool anEnable = anItems.count() > 0; - bool aCopyEnable = anEnable && myCopyLst.count() > 0, - aPasteEnable = anEnable; + bool aCopyEnable = anEnable, + aPasteEnable = anEnable && myCopyLst.count() > 0; QModelIndexList::const_iterator anIt = anItems.begin(), aLast = anItems.end(); int aRow, aCol; for ( anIt = anItems.begin(); anIt != aLast; ++anIt ) { -- 2.39.2